Configuration and constants¶
This module contains all default constants and configuration values used by CodeVideoRenderer. You can import these constants to customize the rendering behavior, or pass your own values directly to CameraFollowCursorCV.
Commonly customized constants¶
DEFAULT_TAB_WIDTH— Number of spaces used to expand tab characters (default:4).DEFAULT_TYPE_INTERVAL— Seconds between typed characters (default:0.15).DEFAULT_LINE_SPACING— Vertical spacing between code lines (default:0.8).DEFAULT_CURSOR_BLINK_RUN_TIME— Duration of the cursor blink animation (default:0.5).CODE_OFFSET— Vertical offset applied to code positioning (default:0.08).NOT_AVAILABLE_CHARACTERS— Characters that are rejected during rendering ('\r\v\f').
- CodeVideoRenderer.config.ORIGINAL_STDOUT = <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>¶
Original standard output stream, used for console output.
- CodeVideoRenderer.config.ORIGINAL_STDERR = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>¶
Original standard error stream, used for console error output.
- CodeVideoRenderer.config.ORIGINAL_PROGRESS_BAR¶
Original progress bar, used for progress tracking.
- CodeVideoRenderer.config.DEFAULT_OUTPUT_VALUE = True¶
Default output value.
- CodeVideoRenderer.config.DEFAULT_LINE_SPACING = 0.8¶
Default line spacing.
- CodeVideoRenderer.config.DEFAULT_CURSOR_HEIGHT = 0.35¶
Default cursor height.
- CodeVideoRenderer.config.DEFAULT_CURSOR_WIDTH = 0.0001¶
Default cursor width.
- CodeVideoRenderer.config.DEFAULT_CODE_FONT = 'Consolas'¶
Default code font.
- CodeVideoRenderer.config.DEFAULT_CURSOR_TO_CHAR_BUFFER = 0.07¶
Default buffer time between cursor movement and character rendering.
- CodeVideoRenderer.config.DEFAULT_TYPE_INTERVAL = 0.15¶
Default typing interval.
- CodeVideoRenderer.config.DEFAULT_LINE_BREAK_RUN_TIME = 0.4¶
Default line break animation run time.
- CodeVideoRenderer.config.DEFAULT_TAB_WIDTH = 4¶
Default tab width.
- CodeVideoRenderer.config.DEFAULT_OUTPUT_CONSOLE = <console width=80 None>¶
Default output console.
- CodeVideoRenderer.config.DEFAULT_CURSOR_BLINK_RUN_TIME = 0.5¶
Default cursor blink animation run time.
- CodeVideoRenderer.config.CODE_OFFSET = 0.08¶
Default offset for code rendering.
- CodeVideoRenderer.config.NOT_AVAILABLE_CHARACTERS = '\r\x0b\x0c'¶
Characters that are not available for rendering.
- CodeVideoRenderer.config.OCCUPY_CHARACTER = '('¶
Character that is used to occupy a position in the code.