From CDOT Wiki
[[OOP344 20103 BorderTester | BorderTester.cpp]]
#Calls its parents draw, to draw the border.
#Using iol_display, it prints lines of text
form index _loffset, up to height()-2 times.
#:Note that each line is printed from _offset character using absRow() and absCol(), up o width()-2 characters
Draws the text area and then starts the editing from the
fist line.<br />The whole text should scroll to left, write, up or down instead, if the cursor tries to pass the edges of the text area.<br />
When Enter key is hit, if in insertmode, a new line is inserted after the current line and any text after the cursor in the line should be moved into it.<br />
When Backspace key is hit at the beginning of the line, the content of the current line should be moved to the previous line, the and current line should be deleted. The cursor in this case should stand in front of the copied data. <br />
It deallocates the allocated memory. (If any memory allocation is used).
=Compile, Build, testing=
==Compile and build==
cc -c iol.c
fwfield.o: fwfield.cpp fwfield.h fwborder.h confw.h iol.h
*All the test programs are saved at:
*Test files names are '''Test*.cpp'''
*All test programs are compiled the executable is available on '''matrix.senecac.on.ca/~fardad.soleimanloo'''
*:to run the test programs, login to matrix.senecac.on.ca and login with your own user id and password, then at the command line type: '''~fardad.soleimanloo/tX''', replace the X with the number of the test. (i.e for test three, run: '''~fardad.soleimanloo/t3''')
*:Note that you should use [http://www.chiark.greenend.org.uk/~sgtatham/putty/ Putty] to login to matrix and set the keyboard to Xterm 6
*: Tagged prj0.6