Konsole, which file i should modify ? so i can create new command

i hope to use new draw command in the konsole window:
drawLine 12 23 120 230
drawOval 12 23 100 100
drawRect 12 23 120 230

but i donot know: which file listen the keyPress event ?
the key_Enter event?

i have read :
keyboardTranslatorReader.cpp
TerminalPainter.cpp
shellCommand.cpp
terminalBell.cpp
quickCommandsWidget.cppTerminalInterfaceTest.cpp
shellCommandTest.cpp
vt102EmulationTest.cpp
part.cpp

but not found

i think : key_Enter pressed , then parse the command line ,then exec…

What are you trying to achieve? Are you sure you need to modify the source code?

yes i will modiy source code.

and add new panel in the konsole window.
to draw line rect oval
fill rect ,fill oval