February 10, 2014 Re: Capturing keystrokes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Friday, 7 February 2014 at 18:03:06 UTC, Adam D. Ruppe wrote: > On Friday, 7 February 2014 at 16:58:48 UTC, Chris wrote: >> It actually breaks when I press a modifier key like Ctrl. > > Ctrl alone or ctrl+ a key? Also which terminal emulator and any error message? @Adam The first time I stated ./terminal it worked fine (including Ctrl+) until I hit Ctrl+Shift. It went on strike right there. After restarting, anytime I click Ctrl it just hangs. After killing it I get the following error notification: object.Exception@terminal.d(814): write failed for some reason ---------------- ./terminal(terminal.InputEvent[] terminal.RealTimeConsoleInput.readNextEvents()+0x5c) [0x467ff0] ./terminal(terminal.InputEvent terminal.RealTimeConsoleInput.nextEvent()+0x19f) [0x467d53] ./terminal(_Dmain+0x177) [0x469673] ./terminal(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll().void __lambda1()+0x18) [0x481c24] ./terminal(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())+0x2a) [0x481b7e] ./terminal(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll()+0x30) [0x481be4] ./terminal(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())+0x2a) [0x481b7e] ./terminal(_d_run_main+0x1a3) [0x481aff] ./terminal(main+0x17) [0x47cceb] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f4e040f976d] I used Xfce Terminal Emulator 0.4.8. on Ubuntu 12.04 (or .10?) LTS (with Xfce desktop) |
February 10, 2014 Re: Capturing keystrokes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Chris | >
> Brilliant, thanks. It completely escaped me that ncurses was in the Deimos repo.
Note that NCurses needs ncurses library, while Adam's terminal introduces no dependency, and is pretty much usable on both POSIX and Windows environments.
|
February 10, 2014 Re: Capturing keystrokes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dejan Lekic | On Monday, 10 February 2014 at 14:32:44 UTC, Dejan Lekic wrote:
>>
>> Brilliant, thanks. It completely escaped me that ncurses was in the Deimos repo.
>
> Note that NCurses needs ncurses library, while Adam's terminal introduces no dependency, and is pretty much usable on both POSIX and Windows environments.
I know, but now I have the choice. Whatever suits better for the task at hand.
|
February 10, 2014 Re: Capturing keystrokes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Chris | On Monday, 10 February 2014 at 14:21:59 UTC, Chris wrote:
> The first time I stated ./terminal it worked fine (including Ctrl+) until I hit Ctrl+Shift. It went on strike right there. After restarting, anytime I click Ctrl it just hangs.
Weird, it must be sending a special escape sequence on it.... it works for me though on my 0.4.4 xfce terminal.... well, mostly works, I got the *terminal* to freeze up by opening and closing a few tabs, blargh.
idk what the problem is though, I'd say give ncurses a try and if it works for you, that should be good.
|
February 11, 2014 Re: Capturing keystrokes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Monday, 10 February 2014 at 23:23:41 UTC, Adam D. Ruppe wrote:
> On Monday, 10 February 2014 at 14:21:59 UTC, Chris wrote:
>> The first time I stated ./terminal it worked fine (including Ctrl+) until I hit Ctrl+Shift. It went on strike right there. After restarting, anytime I click Ctrl it just hangs.
>
> Weird, it must be sending a special escape sequence on it.... it works for me though on my 0.4.4 xfce terminal.... well, mostly works, I got the *terminal* to freeze up by opening and closing a few tabs, blargh.
>
> idk what the problem is though, I'd say give ncurses a try and if it works for you, that should be good.
Would be great, if this problem could be sorted out though. terminal.d seems to be pretty handy.
|
Copyright © 1999-2021 by the D Language Foundation