cursr0.1.0 package

Cursor and Terminal Manipulation

attr_off

Attributes Off

attr_on

Attributes On

bg_off

Turn Off Background Color

bg_on

Turn On Background Color

box_at

Draw Box

clear

Clear Text

color_off

Turn Off Colors in Terminal

color_pair

Create Background & Foreground Color Combination

draw_arc

Draw an Arc

draw_bezier

Draw a Bezier Curve

draw_circle

Draw a Circle

draw_ellipse

Draw Ellipse

draw_fn

Draw a Function

draw_lerp

Draw a Line

draw_path

Draw Path

draw_ray

Draw a Ray

draw_rect

Draw a Rectangle

draw_shape

Draw a Shape

erase

Erase Text

example_luckynumber

Example Program From Vignette

fg_off

Turn Off Foreground Color

fg_on

Turn On Foreground Color

fill_circle

Draw a Filled-In Circle

fill_ellipse

Draw a Filled-In Ellipse

fill_rect

Draw a Filled-In Rectangle

fill_shape

Draw a Filled-In Shape

getkp

Get Keypress

getkpl

Loop a Keypress

grid_at

Draw a Character Grid Matrix

grid_mat

Create a Character Grid Matrix

hide_cursor

Hide Cursor

hline

Horizontal Line

hline_at

Draw Horizontal Line

in.term

Determine whether in Terminal

load_cursor

Load Cursor

make_bg

Create Background Color

make_fg

Create Foreground Color

make_style

Create Color & Attribute Style

mv

Move Cursor

mv_col

Move Cursor to Column

mv_row

Move Cursor to Row

mv_to

Move Cursor to Specified Location

path_arc

Arc Path

path_bezier

Bezier Curve Path

path_circle

Path of a Circle

path_ellipse

Ellipse Path

path_fill

Fill In Path

path_fn

Function Path

path_intersection

Intersection between Two Paths

path_lerp

Linear Interpolation Path

path_ray

Ray Path

path_rect

Rectangle Path

path_shape

Path along a Shape

repch

Repeat a Character

reset

Reset Console Style

save_cursor

Save Cursor Position

show_cursor

Show Cursor

style

Add Color & Attributes to a Character

term_dim

Determine Terminal Size

vline

Vertical Line

vline_at

Draw Vertical Line

wr

Write String to Terminal

wrapup

Return Screen to Blank State

wrat

Write At a Specific Location

wrch

Write Character to Terminal

wrchat

Write Character to Terminal at Specified Location

wrkp

Echo Keypress to Screen

wrkpl

Echo Keypress to Screen in a Loop

A toolbox for developing applications, games, simulations, or agent-based models in the R terminal. Included functions allow users to move the cursor around the terminal screen, change text colors and attributes, clear the screen, hide and show the cursor, map key presses to functions, draw shapes and curves, among others. Most functionalities require users to be in a terminal (not the R GUI).

  • Maintainer: Chris Mann
  • License: MIT + file LICENSE
  • Last published: 2021-01-11