[net.sources.bugs] Rogomatic XIV bug

anton@ucbvax.ARPA (Jeff Anton) (02/21/85)

After just installing the new bugs fixes and reading the new bug report
I thought I should describe the cause of one of the unsolved bugs.
That bug is concerning running rogomatic on terminals without hardware
tabs.  What happens I believe is that curses inits with stty tabs set
then thinks the terminal has tabs so it uses them.  But the solution
is not just makeing sure you have stty -tabs set before running.
rogomatic starts a rogue games which does a stty tabs and then rogomatic
inits curses which notices that stty tabs is set so it uses hardware tabs.
Sometimes this does not happen, for example when rogomatic gets to init
curses before rogue does, then things work nicely.  My temperary fix
is to put 'GT=0;' right after the initscr call in rogomatic.  This
tells curses not to send tab chars. (Even if the terminal has tabs.)
The proper fix would be to ensure that curses gets inited before the
rogue starts.  This is a hard problem since the rogue game is started
before the player program starts.  I support you could stick a call
to sleep in the child process before the exec of rogue but that's
a very poor way to fix things.
					Jeff Anton
					..!ucbvax!anton
					anton@Berkeley.ARPA
-- 
_________________________
C knows no bounds.
					Jeff Anton
					U.C.Berkeley
					ucbvax!anton
					anton@berkeley.ARPA