mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 04:15:36 +00:00
handle 'enter' when typing in the terminal
svn path=/trunk/gtk-sharp/; revision=22748
This commit is contained in:
parent
75f7d1226d
commit
f9026e2b5b
|
@ -62,6 +62,13 @@ class T
|
||||||
private void OnCommit (object o, VteSharp.CommitArgs args)
|
private void OnCommit (object o, VteSharp.CommitArgs args)
|
||||||
{
|
{
|
||||||
Terminal term = (Terminal) o;
|
Terminal term = (Terminal) o;
|
||||||
|
if (args.P0 == "\r")
|
||||||
|
{
|
||||||
|
//FIXME: maybe a setting somewhere
|
||||||
|
term.Feed ("\r\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
term.Feed (args.P0);
|
term.Feed (args.P0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue