diff --git a/README.md b/README.md index c4b01b5..62ed8f3 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/rricharz/Tek4010.svg?branch=master)](https://travis-ci.org/rricharz/Tek4010) + # Tektronix 4010 and 4014 Terminal Emulator This is a [Tektronix 4010 and 4014](https://en.wikipedia.org/wiki/Tektronix_4010) terminal emulator @@ -137,10 +139,11 @@ keys frequently to avoid to get a mess on the screen, as on a real Tektronix 401 The hardcopy function on the Tektronix 4010 is emulated with a screen dump. control-w Make a screen dump in current directory using scrot + Can be typed on the keyboard or sent by the computer during alpha mode You can also use the following control key function to close tek4010: - control-q Close tek4010 window and quit tek4010 + control-q Close tek4010 window and quit tek4010. **Login into the system running simh (same or different Raspberry Pi)** diff --git a/main.c b/main.c index 55220dc..ebdbcb7 100644 --- a/main.c +++ b/main.c @@ -149,7 +149,7 @@ static void on_key_press(GtkWidget *widget, GdkEventKey *event, gpointer user_da system("scrot --focussed"); return; } - else if (event->keyval == 0x0071) { // "q" makes screendump + else if (event->keyval == 0x0071) { // "q" quits tek4010 on_quit_event(); return; } diff --git a/tek4010 b/tek4010 index 7c30fcc..b67422b 100755 Binary files a/tek4010 and b/tek4010 differ diff --git a/tek4010.c b/tek4010.c index c796c45..3f3991a 100755 --- a/tek4010.c +++ b/tek4010.c @@ -963,6 +963,9 @@ void tek4010_draw(cairo_t *cr, cairo_t *cr2, int first) case 13: // return mode = 0; x0 = leftmargin; break; + case 23: // ctrl-w screen dump + system("scrot --focussed"); + break; case 28: // file separator >> point plot mode mode = 5; plotPointMode= 1;