handle 'enter' when typing in the terminal

svn path=/trunk/gtk-sharp/; revision=22748
This commit is contained in:
John Luke 2004-02-03 21:21:57 +00:00
parent 75f7d1226d
commit f9026e2b5b

View file

@ -62,6 +62,13 @@ class T
private void OnCommit (object o, VteSharp.CommitArgs args)
{
Terminal term = (Terminal) o;
if (args.P0 == "\r")
{
//FIXME: maybe a setting somewhere
term.Feed ("\r\n");
return;
}
term.Feed (args.P0);
}