Re: [dev] [dvtm] AIX build

From: Ross Mohn <rpmohn_AT_waxandwane.org>
Date: Thu, 06 Jan 2011 15:27:25 -0500

 On 01/06/2011 01:35 PM, Ross Mohn wrote:
> On 01/06/2011 01:09 PM, Ross Mohn wrote:
>> Attached is a basic forkpty-aix.c that I put together from tmux and
>> glib projects and my own testing. I've been using it successfully for
>> over a month now, so it should be OK. Additional patches to come later
>> today in this thread.
>> -Ross
> And here are the rest of the changes that should get things working on AIX.
> Thanks! -Ross
> P.S. Sorry about the previous html formated email.
>

Also, I see that you replaced the interpret_esc_SR() function with an
interpret_esc_RI() function, but it doesn't work right. You can see the
bad behavior by viewing a file using less and try scrolling up and down.
I put back the SR function code and it works again.

--- ../dvtm-HEAD-20110105-233115/madtty.c>--2011-01-05
18:31:15.000000000 -0500
+++ madtty.c>---2011-01-06 15:20:37.000000000 -0500
@@ -744,8 +748,8 @@
  /* Interpret a 'reverse index' (RI) sequence */
  static void interpret_esc_RI(madtty_t *t)
  {
- if (t->curs_row > t->lines)
- t->curs_row--;
+ t_row_roll(t->scroll_top, t->scroll_bot, -1);
+ t_row_set(t->scroll_top, 0, t->cols, t);
  }
..
  /* Interpret a 'next line' (NEL) sequence */

Thanks! -Ross
Received on Thu Jan 06 2011 - 21:27:25 CET

This archive was generated by hypermail 2.2.0 : Thu Jan 06 2011 - 21:36:03 CET