I actually managed a small text editor. it's definitely possible to str_cat a \n.

Code:

function line_feed()
{
str_cat(new_line,"\n");
wait(1);
inkey(new_line);
}

...

on_enter= line_feed;



However, this code will only work when inkey(); is disabled, so you have to hit enter twice (one to exit inkey, and the other to execute line_feed()).

Last edited by MrCode; 09/18/07 04:00.

Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}