slightly update ][ keymap, fix for text2merlin running off in the weeds

This commit is contained in:
dschmenk 2013-11-17 19:08:22 -08:00
parent be142a8da0
commit 6c813637fd
4 changed files with 26 additions and 19 deletions

View File

@ -1,5 +1,5 @@
PACKAGE=a2pi
VERSION=0.1.4
VERSION=0.1.5
DIST=$(PACKAGE)-$(VERSION)
DISTDIR=./$(DIST)

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
a2pi (0.1.5-1) unstable; urgency=low
* One more attempt at mouse acceleration, Apple ][/][+ support
-- David Schmenk <dschmenk@gmail.com> Mon, 16 Nov 2013 22:17:40 -0800
a2pi (0.1.4-2) unstable; urgency=low
* Fix postinst to not comment out all T* lines

Binary file not shown.

37
share/text2merlin.c Normal file → Executable file
View File

@ -3,22 +3,23 @@
int main(int argc, char **argv)
{
int fout;
char c;
if (argc > 1)
fout = open(argv[1], O_WRONLY|O_CREAT, 0644);
else
fout = 1;
while ((c = getc(stdin)) != EOF)
{
if (c == '\n')
c = '\r';
if (c == '\t')
c = ' ';
c |= 0x80;
write(fout, &c, 1);
}
close(fout);
return (0);
int cin, fout;
char c;
if (argc > 1)
fout = open(argv[1], O_WRONLY|O_CREAT, 0644);
else
fout = 1;
while ((cin = getchar()) != EOF)
{
c = cin;
if (c == '\n')
c = '\r';
if (c == '\t')
c = ' ';
c |= 0x80;
write(fout, &c, 1);
}
close(fout);
return (0);
}