printf 문 안에 ^[[1;30 와 같은 특수문자가 들어가던데요
이렇게 하면 특정컬러나 화면을 지우거나 할 수가 있더군요
여기에 대해 좀더 자세한 정보 주시면 고맙겠네요
ncurses, terminal emulation, termcap, terminfo, ansi code 등으로 검색해보세요..
printf에서 터미널 제어 코드를 출력하시는 것보다는 ncurses를 활용하시는 편이 훨씬 바람직하다고 개인적으로 생각합니다.
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
ncurses, terminal emulation, termcap, te
ncurses, terminal emulation, termcap, terminfo, ansi code 등으로 검색해보세요..
printf에서 터미널 제어 코드를 출력하시는 것보다는 ncurses를 활용하시는 편이 훨씬 바람직하다고 개인적으로 생각합니다.
댓글 달기