<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Julien,<br><br>The issue that fons brought up regarding mixed output lines does<br>raise another question: what do you do with programes if you have <br>problems? I take it most devo's want debug output, how do you get<br>it to them with your display?<br><br>Bristol has an option to redirect debug to a file, I think I might <br>see about getting that to work whilst having the CLI use another <br>file descriptor which is a dup() of the original stdout.<br><br>Nick.<br><br>"we have to make sure the old choice [Windows] doesn't disappear”.<br>Jim Wong, president of IT products, Acer<br><br><br><br><br><hr id="stopSpelling">From: nickycopeland@hotmail.com<br>To: fons@kokkinizita.net; linux-audio-dev@lists.linuxaudio.org<br>Date: Fri, 9 Apr 2010 23:07:23 +0200<br>Subject: Re: [LAD] Interface development for the blind (starting from Bristol)<br><br>



<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>


> you want the user's input line to remain intact<br>> instead of being broken into pieces by the output.<br>> This could be even more important in case the<br>> interface is a single line Braille 'display'. <br>> <br>> I once had some nice code solving this, but it<br>> was written for my then employer, and I can't<br>> use it in open source projects.<br><br>That is a good point. A text based interface is quite an abtraction<br>of something that has been written to be a GUI which means <br>debug output may well be useful. Since that does damage the<br>display, with or without brail, it does beg the question as to whether<br>it could be 'rewritten'.<br><br>It could be done with some IO redirection pipes, suitable code in <br>the 'raw' IO channel to understand where input came from using<br>a bit of extra select() in there to bring the channels back together <br>and apply suitable output depending on where the different CR <br>were, or that incomplete user input lines were rewritten after <br>each debug line? And then a bit of NL->CRNL for the raw mode <br>interface.<br><br>Not something I would want to code for a prototype but is <br>unfortunately something that could better be coded in advance<br>than bolted on the end?<br><br>Nick.<br>                                      <br><hr>Hotmail: Free, trusted and rich email service. <a href="https://signup.live.com/signup.aspx?id=60969">Get it now.</a>                                         <br /><hr />Hotmail: Trusted email with powerful SPAM protection. <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>Sign up now.</a></body>
</html>