Home » Developing U++ » U++ Developers corner » Q: howto incorporate a native console window in GUI
Re: Q: howto incorporate a native console window in GUI [message #31164 is a reply to message #31144] |
Fri, 11 February 2011 09:29 |
|
I'm afraid I can't help you much with the behavior of cmd - I don't have windows POSIX shells don't echo, it is business of the terminal. The idea is the same as if you feed the script to shell using a pipe: "cat script.sh | sh". This would print just the output of the script, not its content. We are doing basically the same thing. Everything that user types stays in the LineEdit, so it should be not necessary to have any echoing. The linux version of nslookup works fine with the simple code I posted before.
I tried your code, but it has one great fault. You are processing each character separately, feeding it directly to console. It is in principle possible, but than you have to take care about control sequences (cursor movement, delete, backspace), otherwise you're sending crap I agree that some programs might need it (if they expected single letter commands without trailing \n), but it is much more work to do.
Honza
|
|
|
|
|
Q: howto incorporate a native console window in GUI
By: kohait00 on Thu, 10 February 2011 10:39
|
|
|
Re: Q: howto incorporate a native console window in GUI
|
|
|
Re: Q: howto incorporate a native console window in GUI
By: kohait00 on Thu, 10 February 2011 13:33
|
|
|
Re: Q: howto incorporate a native console window in GUI
|
|
|
Re: Q: howto incorporate a native console window in GUI
By: kohait00 on Thu, 10 February 2011 14:04
|
|
|
Re: Q: howto incorporate a native console window in GUI
By: mdelfede on Thu, 10 February 2011 14:10
|
|
|
Re: Q: howto incorporate a native console window in GUI
By: kohait00 on Thu, 10 February 2011 14:45
|
|
|
Re: Q: howto incorporate a native console window in GUI
|
|
|
Re: Q: howto incorporate a native console window in GUI
By: kohait00 on Thu, 10 February 2011 15:02
|
|
|
Re: Q: howto incorporate a native console window in GUI
|
|
|
Re: Q: howto incorporate a native console window in GUI
By: kohait00 on Thu, 10 February 2011 15:34
|
|
|
Re: Q: howto incorporate a native console window in GUI
|
|
|
Re: Q: howto incorporate a native console window in GUI
By: kohait00 on Thu, 10 February 2011 20:52
|
|
|
Re: Q: howto incorporate a native console window in GUI
By: kohait00 on Thu, 10 February 2011 21:58
|
|
|
Re: Q: howto incorporate a native console window in GUI
By: mdelfede on Thu, 10 February 2011 14:03
|
|
|
Re: Q: howto incorporate a native console window in GUI
|
|
|
Re: Q: howto incorporate a native console window in GUI
By: kohait00 on Fri, 11 February 2011 11:32
|
Goto Forum:
Current Time: Sun May 12 06:33:50 CEST 2024
Total time taken to generate the page: 0.03426 seconds
|