Recently, the teacher asked me to process multi-threaded server development on QT under Ubuntu. Although I only called the network module of qt, in order to avoid the trouble, I wrote the console program in QT, but the following occurs when I run the program.
The program is running, but there is only one cursor on the console. Due to Baidu's incorrect posture, it took a lot of time to understand that qt creator does not support Gnome default terminal gnome-terminal.
Therefore, you need to switch to the XTerm console.
The specific solution is to change "tools-> options-> system-> Terminal-> to" xterm-e.
In this way, the above problem can be solved.
However, because the original XTerm interface is terrible, let's talk about the XTerm configuration method.
The procedure is as follows:
1) Configure sudo vim. Xresources
The following is a ready-made online example.
Xft. dpi: 96
Xpdf. title: PDF
XTerm * locale: true
XTerm * utf8Title: true
XTerm * fontMenu * fontdefault * Label: Default
XTerm * faceName: Lucida Console
XTerm * faceNameDoublesize: LiHei Pro
XTerm * faceSize: 10
XTerm * faceSize1: 10
XTerm * faceSize2: 10
XTerm * faceSize3: 10
XTerm * faceSize4: 10
XTerm * faceSize5: 10
XTerm * faceSize6: 10
XTerm. cjkWidth: true
XTerm * background: #1c5572
XTerm * foreground: white
XTerm * scrollBar: true
XTerm * rightScrollBar: true
XTerm * jumpScroll: true
XTerm * SaveLines: 1000
2) enter the following command: sudo xrdb-load ~ /. Xresources
In this way, the interface is slightly eye-catching.