사용자 도구

사이트 도구


ansi

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
ansi [2020/01/07 04:19] – 만듦 rex8312ansi [2024/03/23 02:38] (현재) – 바깥 편집 127.0.0.1
줄 2: 줄 2:
  
   * http://www.lihaoyi.com/post/BuildyourownCommandLinewithANSIescapecodes.html   * http://www.lihaoyi.com/post/BuildyourownCommandLinewithANSIescapecodes.html
 +  * https://github.com/facebookresearch/nle/tree/main/nle/scripts
  
 컬러 문자열 출력 컬러 문자열 출력
줄 7: 줄 8:
   * https://github.com/tartley/colorama   * https://github.com/tartley/colorama
   * https://stackoverflow.com/questions/287871/how-to-print-colored-text-in-terminal-in-python   * https://stackoverflow.com/questions/287871/how-to-print-colored-text-in-terminal-in-python
 +
 +모듈
 +  * colorama
 +  * termcolor
  
  
줄 52: 줄 57:
  
 <code python> <code python>
 +//cursor navigation
 +UP = f"\u001b[{n}A"
 +Down = f"\u001b[{n}B"
 +Right = f"\u001b[{n}C"
 +Left = f"\u001b[{n}D"
 +
 // Reset // Reset
 RESET = "\033[0m";  // Text Reset RESET = "\033[0m";  // Text Reset
줄 125: 줄 136:
 WHITE_BACKGROUND_BRIGHT = "\033[0;107m";   // WHITE WHITE_BACKGROUND_BRIGHT = "\033[0;107m";   // WHITE
 </code> </code>
 +
 +{{tag>ansi terminal console}}
ansi.1578370780.txt.gz · 마지막으로 수정됨: 2024/03/23 02:37 (바깥 편집)