MOU AL202 Linux Null Characters
Posted: Mon Nov 22, 2010 1:25 pm
Hi,
I've just switched over to using Linux and am having some problems making a program to control my screen, i made a program in .net on windows and it works without an issue, so i dont know if its a c++ issue or Linux. This is my first go at c++ so wouldn't be surprised if i'm missing something!
I dont know if anyone could look at the attachments and help me work out whats happening? I've tried reading all sorts and cant get anywhere and get the same problem with Python and perl.
Basically when sending commands such as 0xFE, 0x58 to clear the screen it will clear but sending another command after wont work or if i send a string it seems to drop the first character. If i send nulls after a command it seems to work but leaves some strange character behind.
The picture with the X in the bottom row is without sending nulls and the other picture with the strange character is with sending nulls, both from sending a test string, sending the turn on command and then clearing the screen.
The other picture is from not sending nulls but sending the string, turning the screen on, sending the string again.
I cant seem to see whats going on so any help would be great!
Thanks,
Julian
I've just switched over to using Linux and am having some problems making a program to control my screen, i made a program in .net on windows and it works without an issue, so i dont know if its a c++ issue or Linux. This is my first go at c++ so wouldn't be surprised if i'm missing something!
I dont know if anyone could look at the attachments and help me work out whats happening? I've tried reading all sorts and cant get anywhere and get the same problem with Python and perl.
Basically when sending commands such as 0xFE, 0x58 to clear the screen it will clear but sending another command after wont work or if i send a string it seems to drop the first character. If i send nulls after a command it seems to work but leaves some strange character behind.
The picture with the X in the bottom row is without sending nulls and the other picture with the strange character is with sending nulls, both from sending a test string, sending the turn on command and then clearing the screen.
The other picture is from not sending nulls but sending the string, turning the screen on, sending the string again.
I cant seem to see whats going on so any help would be great!
Thanks,
Julian