Hi , iam trying to develop a simple text editor on Turbo C , that will accept values from the keyboard and print on the screen . I want a scrolling function . when i entered th data and press enter button it will come to the next line . I think when i press enter on the last line , transfer the last content of the array to previous one and blank the last line ,and so on , then user seems it a scrolling eefect .
how to transfer array = array[i-1] , and put it ina while loop , and reprint the array on screen
-------------------------------------------------
1
2
3
4
5 - <--- press enter here on screen
--------------------------------------------------
-------------------------------------------------
2
3
4
5
6 - <--- now the cursor is here, and when user press Enter key
------------------------------------
3
4
5
6
7- <----- now cursor is here........
and i want to continue it as infinite . plz help me ....
i have all cases in my program Enter,Left,Right,Del,Back space....
Please help me to convert a good text editor in dos.....
u got the concept . idon't know to explain it....please help me....