1
0
mirror of https://github.com/rricharz/Tek4010.git synced 2026-01-13 15:27:31 +00:00

screen dump under computer control with ctrl-w

This commit is contained in:
¨Rene Richarz 2019-04-11 13:09:58 +02:00
parent 71d79cb8d2
commit 41b4922cfe
4 changed files with 8 additions and 2 deletions

View File

@ -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)**

2
main.c
View File

@ -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) { // "<ctrl>q" makes screendump
else if (event->keyval == 0x0071) { // "<ctrl>q" quits tek4010
on_quit_event();
return;
}

BIN
tek4010

Binary file not shown.

View File

@ -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;