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 PACKAGE=a2pi
VERSION=0.1.4 VERSION=0.1.5
DIST=$(PACKAGE)-$(VERSION) DIST=$(PACKAGE)-$(VERSION)
DISTDIR=./$(DIST) 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 a2pi (0.1.4-2) unstable; urgency=low
* Fix postinst to not comment out all T* lines * 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 main(int argc, char **argv)
{ {
int fout; int cin, fout;
char c; char c;
if (argc > 1) if (argc > 1)
fout = open(argv[1], O_WRONLY|O_CREAT, 0644); fout = open(argv[1], O_WRONLY|O_CREAT, 0644);
else else
fout = 1; fout = 1;
while ((c = getc(stdin)) != EOF) while ((cin = getchar()) != EOF)
{ {
if (c == '\n') c = cin;
c = '\r'; if (c == '\n')
if (c == '\t') c = '\r';
c = ' '; if (c == '\t')
c |= 0x80; c = ' ';
write(fout, &c, 1); c |= 0x80;
} write(fout, &c, 1);
close(fout); }
return (0); close(fout);
return (0);
} }