Changes

Jump to: navigation, search

BIOF 20101 (AS1) - OOP344

164 bytes added, 13:47, 24 February 2010
m
Due date - deleted comma from due date
= Basic Input Output Function Set V1.1=
V1.1: added '''"int readonly"''' flag to the arguments of bio_edit() function.
== Due date ==
Due date: Feb,25 @ 23:59
<big>
biomain.c V0.8 is released svn://zenit.senecac.on.ca/oop344/trunk/biomain.c
</big>
 
 
== File Names ==
Note that the conditions of termination are changed if '''“IsTextEditor”''' flag is true (non-zero). See '''“IsTextEditor”''' section for detail.
If '''"ReadOnly"''' has a true value (non-zero) then any attempt to change the content of '''"str"''' should be ignoredend the function and return the key . Note that all other keys should work. (Function and Non-ASCII keys). This make the '''bio_edit()''' funciton "read only", but still user can scroll the text to left or right and etc....
The function returns an int identifying the key that was pressed to exit. (This function uses the same key codes as bio_getch())
Compile your code as:
<big>
> bcc32 biomain.c ciolbiof.c
</big>
 
You must restart your computer for changes to take affect!
'''Happy Compiling!'''
To compile using gcc issue the following command:<br />
<big>
gcc biomain.c ciolbiof.c -lncurses
</big>
or
<big>
cc biomain.c ciolbiof.c -lncurses
</big>
'''Also make sure you use [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]for your telnet client and set the Temminal/keyboard / function keys to Xterm R6'''
1
edit

Navigation menu