gdb 로 디버깅 중 화면 깨끗이 하는 clear 등의 명령어는 없나요??

myhong74의 이미지

gdb 명령어중 화면 클리어 하는 명령어는 없을까요?
아무리 찾아 봐도 없는것 같아서..

아시는분 계신가요??

익명 사용자의 이미지

터미널이 지원 한다면, CTRL+L 이 깨끝하게 해주는 데요.
우분투 그놈 터미널에서 해봤습니다.

nthroot의 이미지

Quote:

Readline Movement Commands
The above table describes the most basic possible keystrokes that you need in order to do editing of the input line. For your convenience, many other commands have been added in addition to C-b, C-f, C-d, and DEL. Here are some commands for moving more rapidly about the line.

C-a
Move to the start of the line.
C-e
Move to the end of the line.
M-f
Move forward a word.
M-b
Move backward a word.
C-l
Clear the screen, reprinting the current line at the top.
Notice how C-f moves forward a character, while M-f moves forward a word. It is a loose convention that control keystrokes operate on characters while meta keystrokes operate on words.

GDB 매뉴얼에서..

------식은이 처------
길이 끝나는 저기엔 아무 것도 없어요. 희망이고 나발이고 아무 것도 없어.

myhong74의 이미지

Ctrl + l 눌러 더니 되네요..

감사합니다.