*BSD News Article 9723


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA6354 ; Fri, 08 Jan 93 09:08:10 EST
Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!gatech!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!uknet!mcsun!news.funet.fi!fuug!kiae!demos!newsserv
From: ache@astral.msk.su (Andrew A. Chernov, Black Mage)
Newsgroups: comp.unix.bsd
Subject: [386bsd] Patch #3 for 8-bit curses, useful for standard curses too
Message-ID: <lIKx5KhaX2@astral.msk.su>
Date: 10 Jan 93 17:37:24 GMT
Sender: news-service@newcom.kiae.su
Reply-To: ache@astral.msk.su
Organization: Ha-oh-lahm Yetzirah
Lines: 41

This small patch fix unpleasant standard curses bug:
curses can't expand TAB at all (but tries).
A man who wrote this curses misplace SYNC_IN and SYNCH_OUT,
this patch exchange macro calls.

This patch useful for standard 7-bit curses too, for this
you must delete '_' symbol before waddbytes and apply patch.


*** addbytes.c.was1	Fri Jan  8 15:46:02 1993
--- addbytes.c	Sun Jan 10 20:01:17 1993
***************
*** 75,85 ****
  	    c = *bytes++;
  	    switch (c) {
  	      case '\t':
! 		    SYNCH_IN();
  		    if (_waddbytes(win, blanks, 8-(x%8)) == ERR) {
  			return ERR;
  		    }
! 		    SYNCH_OUT();
  		    break;
  
  	      default:
--- 75,85 ----
  	    c = *bytes++;
  	    switch (c) {
  	      case '\t':
! 		    SYNCH_OUT();
  		    if (_waddbytes(win, blanks, 8-(x%8)) == ERR) {
  			return ERR;
  		    }
! 		    SYNCH_IN();
  		    break;
  
  	      default:
-- 
In-This-Life:  Andrew A. Chernov    |  "Hay mas dicha, mas contento
Internet:      ache@astral.msk.su   |  "Que adorar una hermosura
Organization:  The RELCOM Corp.,    |  "Brujuleada entre los lejos
               Moscow, Russia       |  "De lo imposible?!"  (Calderon)