konsole에는 --new-tab 옵션이 없습니다

konsole에는 --new-tab 옵션이 없습니다

내 콘솔에는 --new-tab 옵션이 없지만 동일한 작업을 수행하는 버튼이 있습니다.

Usage: konsole [Qt-options] [KDE-options] [options] [args]

X terminal for use with KDE.

Generic options:
  --help                    Show help about options
  --help-qt                 Show Qt specific options
  --help-kde                Show KDE specific options
  --help-all                Show all options
  --author                  Show author information
  -v, --version             Show version information
  --license                 Show license information
  --                        End of options

Options:
  --name <name>             Set window class
  --ls                      Start login shell
  -T <title>                Set the window title
  --tn <terminal>           Specify terminal type as set in the TERM [xterm]
                            environment variable
  --noclose                 Do not close Konsole when command exits
  --nohist                  Do not save lines in history
  --nomenubar               Do not display menubar
  --notabbar, --notoolbar   Do not display tab bar
  --noframe                 Do not display frame
  --noscrollbar             Do not display scrollbar
  --noxft                   Do not use Xft (anti-aliasing)
  --vt_sz CCxLL             Terminal size in columns x lines
  --noresize                Terminal size is fixed
  --type <type>             Start with given session type
  --types                   List available session types
  --keytab <name>           Set keytab to 'name'
  --keytabs                 List available keytabs
  --profile <name>          Start with given session profile
  --profiles                List available session profiles
  --schema <name> | <file>  Set schema to 'name' or use 'file'
  --schemas, --schemata     List available schemata
  --script                  Enable extended DCOP Qt functions
  --workdir <dir>           Change working directory to 'dir'
  -e <command>              Execute 'command' instead of shell

Arguments:
  args                      Arguments for 'command'

여기에 이미지 설명을 입력하세요.

그래서 나는 알고 싶습니다:

  1. 콘솔에 새 탭을 여는 옵션이 없는데 그렇게 하는 버튼이 있는 이유는 무엇입니까?

  2. 현재 상황에서 명령줄을 통해 동일한 창 프레임에 새 탭을 계속 시작할 수 있는 방법은 무엇입니까? 이 문제를 해결하는 가능한 방법은 무엇입니까?

버전 정보:

Qt: 3.3.6
KDE: 3.5.4-26.el5.centos.1 Red Hat
Konsole: 1.6.4

답변1

  1. 이전 Qt 프로그램에 대해서는 잘 모르겠지만 최신 Qt 프레임워크 이벤트는 "신호 및 슬롯" 개념을 기반으로 합니다(http://doc.qt.io/qt-4.8/signalsandslots.html). Konsole의 작성자/유지관리자가 버튼 누르기 이벤트와 새 탭을 생성하는 기능 사이에 링크를 만들었지만 --new-tab프로그램 옵션과 해당 기능(당시) 사이에는 링크를 만들지 않았다고 상상합니다.

  2. 현재 상황(설치된 소프트웨어 및 프레임워크 버전)에서 이 문제를 어떻게 해결해야 할지 잘 모르겠습니다. 하지만 이 --new-tab옵션은 Konsole의 이후 버전에서 사용할 수 있습니다.

    --new-tab                 Create a new tab in an existing window rather
                              than creating a new window
    --tabs-from-file <file>   Create tabs as specified in given tabs
                              configuration file
    

버전 정보:

Qt: 5.5.1
KDE Frameworks: 5.18.0
Konsole: 15.12.3

가능하다면(중요한 서비스/프로그램과의 비호환성을 제외하고) 가장 간단한 대답은 Konsole 및/또는 KDE를 최신 버전으로 업그레이드하는 것입니다.

관련 정보