From f9026e2b5b2261fa7dfbf2f0f4272f89a09261aa Mon Sep 17 00:00:00 2001 From: John Luke Date: Tue, 3 Feb 2004 21:21:57 +0000 Subject: [PATCH] handle 'enter' when typing in the terminal svn path=/trunk/gtk-sharp/; revision=22748 --- sample/VteTest.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sample/VteTest.cs b/sample/VteTest.cs index f594eb45d..0a55eaa4a 100644 --- a/sample/VteTest.cs +++ b/sample/VteTest.cs @@ -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); }