Skip to content

Commit

Permalink
Swap around DEL/BS inputs, some text rewordings
Browse files Browse the repository at this point in the history
  • Loading branch information
Spritetm committed Jul 2, 2024
1 parent 83d55e2 commit 3ca98b2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plexem.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<link rel="stylesheet" href="xterm/css/xterm.css" />
<link rel="stylesheet" href="plexem.css" />
<title>Plexus P/20 emulator</title>
</head>
<body>
<div id="terminal"></div>
Expand Down Expand Up @@ -58,13 +59,13 @@
<li>If you're at the 'PLEXUS PRIMARY BOOT REV 1.2' prompt, the Plexus is waiting for you to do something. Try pressing enter to boot Unix.</li>
<li>If you run 'init 2', you need to login. Try user 'root' with no password.</li>
<li>If you get weird colored blocks in the terminal, please allow using canvas image data for this site. There probably is an icon for that in the address bar.</li>
<li>Hard disk changes are changed to local storage in your browser. Changing computers or browsers will clear it.</li>
<li>Hard disk changes are saved to local storage in your browser. Changing computers or browsers will clear it.</li>
</ul>
<button id="closefaq">Close</button>
</dialog>
<dialog id="about">
<p>
This is an emulator for a Plexus P/20 system, which is an Unix workstation from the '80's. It
This is an emulator for a Plexus P/20 system, which is an Unix server from the '80's. It
runs SystemV Unix on a dual 68010 processor mainboard. Adrian Black
(from Adrian's Digital Basement) did some videos on the topic of getting one to work:
<a href="https://www.youtube.com/watch?v=iltZYXg5hZw">1</a>
Expand Down
8 changes: 8 additions & 0 deletions uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ static int uart_poll_for_console_character() {
result = read(STDIN_FILENO, &c, 1);
if (result == 1) {
ctrl_c_pressed_times=0; //reset ctrl-c counter
//Swap around DEL and BSP. Terminals nowadays send the former,
//Unix expects the latter. Note you can usually press ctrl-backspace
//to get 'the other one', depending on your terminal.
if (c==0x7F) {
c=8;
} else if (c==8) {
c=0x7F;
}
return c;
}
}
Expand Down

0 comments on commit 3ca98b2

Please sign in to comment.