Clearing the screen by printing a character?

前端 未结 2 1430
借酒劲吻你
借酒劲吻你 2020-12-15 05:58

I\'m using chez-scheme and I can\'t find a way to clear the screen completely. (If someone knows a better way than printing I\'d be interested in that too but it\'s not my q

2条回答
  •  误落风尘
    2020-12-15 06:28

    You can print \033c which resets the terminal:

    petite -q <<< '(display "\033c")'
    

    \033 is escape and c is literal c.

    I can't give you any information about how widely this is supported.

提交回复
热议问题