Capturing keystrokes

Chris wendlec at tcd.ie
Mon Feb 10 06:21:58 PST 2014


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 at 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)


More information about the Digitalmars-d mailing list