Operating System - HP-UX
1748246 Members
3201 Online
108760 Solutions
New Discussion

Re: how to set the terminal

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: how to set the terminal

>how to adjust the terminal window.

 

Hmm, whatever terminal emulator you're using is just broken?  The lines seem to be interspersed.

One possibility is that you are getting the stdout and stderr output interspersed.

You need to use:

make ... 2>&1 ...

 

Note: If an application is writing to both stdout and stderr, it must do something special so that the output looks reasonable.  It must flush stdout (since buffered) before it writes to stderr.

jonesliu
Advisor

Re: how to set the terminal

Hi

>&1

But it does not work. the error info still be partly.

refer to the attachment

jonesliu
Advisor

Re: how to set the terminal

Hi Bill Hassell:

Yes, if the built succeed, the output info starts with:

 

/var/SPS/SPS/wxWidgets...

 

and ends with:

 

../src/common/wxcrt.cpp

 

but , if the built failed, the error output info starts with:

../src/common/wxcrt.cpp: In function ‘int wxVsscanf(const char*, const char*, void*)’:

 

this line is intercepted.

 

you can compare the three pictures as attachment(1.png, 2.png, 3.png), the errors is different according to the terminal window size.

The error line will contain more info when resize the windows to maximize.

 

The error info will be the same if I input to the file via the command : make  >output.txt  2>&1

Dennis Handly
Acclaimed Contributor

Re: how to set the terminal

>The error line will contain more info when resize the windows to maximize.

 

Then your terminal emulator is just broken.  Nothing you can do except copy the output to your PC.

 

I suppose you could try to suppress stdout and just look at stderr:

make 2>&1 > /dev/null

 

What does "stty -a" show?  Perhaps you don't have the XOFF hand shaking?

You should see ixoff and not -ixoff.

Bill Hassell
Honored Contributor
Solution

Re: how to set the terminal

I agree with Dennis, your terminal (which appears to be dterm) is archaic for Unix system administration and programming. If you are using a PC to view the dterm window, time to shutoff Xwindows and use a real terminal emulator. The best is PuTTY and can be downloaded from:

 

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

 

Then as Dennis suggests, your /etc/profile needs to have a proper stty setup.

Replace the stty lines in /etc/profile with these two lines:

 

stty erase "^H" kill "^U" intr "^C" eof "^D" -parity ixoff
stty susp \^Z dsusp \^Y

 

This will also fix any problems you have had in the past with pasting large amounts of text using vi.



Bill Hassell, sysadmin
jonesliu
Advisor

Re: how to set the terminal

Thanks a lot for all the help, but it sees still can not work.

I have edit the /etc/profile and  use the putty to make the software.

please refer to attachment "putty.png"

 

 

Dennis Handly
Acclaimed Contributor

Re: how to set the terminal (CV qualifier mismatch)

>but it sees still can not work.

 

You need to define what "work" means.  It is now correctly printing the error message.

 

You are illegally trying to call vsscanf passing a const char* to a char*, the output parm.

jonesliu
Advisor

Re: how to set the terminal (CV qualifier mismatch)

Dennis Handly
Acclaimed Contributor

Re: how to set the terminal (CV qualifier mismatch)

>

 

If you're happy with the answers you were given, please click on the Kudos star for each helpful answer.