Skip to content

Commit

Permalink
Fix tparm calls to the POSIX standard.
Browse files Browse the repository at this point in the history
Remove non-standard resetterm call as it calls reset_shell_mode anyway.
  • Loading branch information
roy committed Dec 7, 2011
1 parent 61a21ab commit 4396f06
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
5 changes: 3 additions & 2 deletions inputmethod/canna/distinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.9 2008/09/18 12:33:44 taca Exp $
$NetBSD: distinfo,v 1.10 2011/12/07 16:05:59 roy Exp $

SHA1 (Canna36p4.tar.gz) = 4edc22e2e4e5c6db42daa2083fabb53aa1ae8168
RMD160 (Canna36p4.tar.gz) = 7f8bb7f5d87e6b939ff2b84edf58072c75a5d09d
Expand All @@ -16,5 +16,6 @@ SHA1 (patch-aj) = 30d19c8ef9c1129e5214cb9a8a1d8b2b636b0361
SHA1 (patch-ak) = 18b408344b8b617142ced8804990e87b7ae27f56
SHA1 (patch-al) = f6025d6fb7a3247ef44b0a50ae13b67ef3dad2d9
SHA1 (patch-am) = 756aed6fc81a9d75a55d123c8dc00c0932b8df7f
SHA1 (patch-an) = d639f774bf9ef440458bfc716b211a1dcc95a823
SHA1 (patch-an) = ef892b0837e7b3b5b569a7a9a518df2379c43f1c
SHA1 (patch-ao) = c577319f50df6624333726cd62b48d869989d881
SHA1 (patch-ap) = 3f514037c4d67b2e18b27285370fe2ea84d977cc
11 changes: 10 additions & 1 deletion inputmethod/canna/patches/patch-an
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$NetBSD: patch-an,v 1.1 2005/12/30 15:16:21 joerg Exp $
$NetBSD: patch-an,v 1.2 2011/12/07 16:05:59 roy Exp $

--- canuum/canna.c.orig 2005-12-30 14:56:11.000000000 +0000
+++ canuum/canna.c
Expand All @@ -11,3 +11,12 @@ $NetBSD: patch-an,v 1.1 2005/12/30 15:16:21 joerg Exp $
static int maxmodelen;
static int maxwidth = 0;

@@ -1268,7 +1266,7 @@
cannakeyentry(key_end, CANNA_KEY_End);
#endif

- resetterm();
+ reset_shell_mode();
#endif

if (terminalname = malloc(strlen(term) + 1)) {
30 changes: 30 additions & 0 deletions inputmethod/canna/patches/patch-ap
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
$NetBSD: patch-ap,v 1.1 2011/12/07 16:05:59 roy Exp $

--- canuum/termio.c.orig 2011-12-07 13:20:41.000000000 +0000
+++ canuum/termio.c 2011-12-07 15:58:50.000000000 +0000
@@ -175,7 +175,6 @@
void
closeTermData ()
{
- resetterm ();
reset_shell_mode ();
}

@@ -195,7 +194,7 @@
set_scroll_region (start, end)
int start, end;
{
- tputs (tparm (change_scroll_region, start, end), 1, putchar);
+ tputs (tparm (change_scroll_region, start, end, 0, 0, 0, 0, 0, 0, 0), 1, putchar);
}

void
@@ -223,7 +222,7 @@
throw_cur_raw (col, row)
int col, row;
{
- tputs (tparm (cursor_address, row, col), 1, putchar);
+ tputs (tparm (cursor_address, row, col, 0, 0, 0, 0, 0, 0, 0), 1, putchar);
}

void

0 comments on commit 4396f06

Please sign in to comment.