When I try to spawn “vedit” from my photon application, i get the following
error:
vedit: tcgetattr: Inappropriate I/O Control operation.
Am i missing something? Your help is appreciated.
Shashank
When I try to spawn “vedit” from my photon application, i get the following
error:
vedit: tcgetattr: Inappropriate I/O Control operation.
Am i missing something? Your help is appreciated.
Shashank
Shashank wrote:
When I try to spawn “vedit” from my photon application, i get the following
error:vedit: tcgetattr: Inappropriate I/O Control operation.
That’s how vedit complains about its stdin not being a character device.
I can reproduce your error message by running any of the following in
a pterm:
vedit < somefile.c
vedit < /dev/null
cat |vedit
Am i missing something? Your help is appreciated.
Since vedit is a text-mode program, it uses its stdin for input and
stdout for output. You want your vedit to be visible in a Photon
window, rather than to display its stuff on the invisible console
underneath your Photon, right?
If that’s the case, then you need to run your vedit inside a PtTty
widget. Instead of having your own PtTty, it may be simpler to run
vedit in a pterm – operating a PtTty is somewhat more complicated than
calling system( “pterm vedit somefile.txt &” )…
Thanks for answering my question.
Shashank
“Wojtek Lerch” <Wojtek_L@yahoo.ca> wrote in message
news:c6m5k2$evc$1@inn.qnx.com…
Shashank wrote:
When I try to spawn “vedit” from my photon application, i get the
following
error:vedit: tcgetattr: Inappropriate I/O Control operation.
That’s how vedit complains about its stdin not being a character device.
I can reproduce your error message by running any of the following in
a pterm:vedit < somefile.c
vedit < /dev/null
cat |veditAm i missing something? Your help is appreciated.
Since vedit is a text-mode program, it uses its stdin for input and
stdout for output. You want your vedit to be visible in a Photon
window, rather than to display its stuff on the invisible console
underneath your Photon, right?
If that’s the case, then you need to run your vedit inside a PtTty
widget. Instead of having your own PtTty, it may be simpler to run
vedit in a pterm – operating a PtTty is somewhat more complicated than
calling system( “pterm vedit somefile.txt &” )…
Does anyone have an idea as to how I can set the font for “vedit”? The
default font is too small.
Your suggestions are appreciated.
Shashank