Package: cursr 0.1.0

cursr: Cursor and Terminal Manipulation

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).

Authors:Chris Mann

cursr_0.1.0.tar.gz
cursr_0.1.0.zip(r-4.5)cursr_0.1.0.zip(r-4.4)cursr_0.1.0.zip(r-4.3)
cursr_0.1.0.tgz(r-4.4-any)cursr_0.1.0.tgz(r-4.3-any)
cursr_0.1.0.tar.gz(r-4.5-noble)cursr_0.1.0.tar.gz(r-4.4-noble)
cursr_0.1.0.tgz(r-4.4-emscripten)cursr_0.1.0.tgz(r-4.3-emscripten)
cursr.pdf |cursr.html
cursr/json (API)

# Install 'cursr' in R:
install.packages('cursr', repos = c('https://cmann3.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:
  • Sym - Unicode Symbols

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

68 exports 0.00 score 1 dependencies 2 scripts 166 downloads

Last updated 4 years agofrom:451f1a6270. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 30 2024
R-4.5-winNOTEAug 30 2024
R-4.5-linuxNOTEAug 30 2024
R-4.4-winNOTEAug 30 2024
R-4.4-macNOTEAug 30 2024
R-4.3-winNOTEAug 30 2024
R-4.3-macNOTEAug 30 2024

Exports:attr_offattr_onbg_offbg_onbox_atclearcolor_offcolor_pairdraw_arcdraw_bezierdraw_circledraw_ellipsedraw_fndraw_lerpdraw_pathdraw_raydraw_rectdraw_shapeeraseexample_luckynumberfg_offfg_onfill_circlefill_ellipsefill_rectfill_shapegetkpgetkplgrid_atgrid_mathide_cursorhlinehline_atin.termload_cursormake_bgmake_fgmake_stylemvmv_colmv_rowmv_topath_arcpath_bezierpath_circlepath_ellipsepath_fillpath_fnpath_intersectionpath_lerppath_raypath_rectpath_shaperepchresetsave_cursorshow_cursorstyleterm_dimvlinevline_atwrwrapupwratwrchwrchatwrkpwrkpl

Dependencies:keypress

Creating a Simple Terminal Application

Rendered fromMakingASimpleTerminalApp.Rmdusingknitr::rmarkdownon Aug 30 2024.

Last update: 2021-01-11
Started: 2021-01-11

Writing to the Screen

Rendered fromWritingToTheScreen.Rmdusingknitr::rmarkdownon Aug 30 2024.

Last update: 2021-01-11
Started: 2021-01-11

Readme and manuals

Help Manual

Help pageTopics
Attributes Offattr_off
Attributes Onattr_on
Turn Off Background Colorbg_off
Turn On Background Colorbg_on
Draw Boxbox_at
Clear Textclear
Turn Off Colors in Terminalcolor_off
Create Background & Foreground Color Combinationcolor_pair
Draw an Arcdraw_arc
Draw a Bezier Curvedraw_bezier
Draw a Circledraw_circle
Draw Ellipsedraw_ellipse
Draw a Functiondraw_fn
Draw a Linedraw_lerp
Draw Pathdraw_path
Draw a Raydraw_ray
Draw a Rectangledraw_rect
Draw a Shapedraw_shape
Erase Texterase
Example Program From Vignetteexample_luckynumber
Turn Off Foreground Colorfg_off
Turn On Foreground Colorfg_on
Draw a Filled-In Circlefill_circle
Draw a Filled-In Ellipsefill_ellipse
Draw a Filled-In Rectanglefill_rect
Draw a Filled-In Shapefill_shape
Get Keypressgetkp
Loop a Keypressgetkpl
Draw a Character Grid Matrixgrid_at
Create a Character Grid Matrixgrid_mat
Hide Cursorhide_cursor
Horizontal Linehline
Draw Horizontal Linehline_at
Determine whether in Terminalin.term
Load Cursorload_cursor
Create Background Colormake_bg
Create Foreground Colormake_fg
Create Color & Attribute Stylemake_style
Move Cursormv
Move Cursor to Columnmv_col
Move Cursor to Rowmv_row
Move Cursor to Specified Locationmv_to
Arc Pathpath_arc
Bezier Curve Pathpath_bezier
Path of a Circlepath_circle
Ellipse Pathpath_ellipse
Fill In Pathpath_fill
Function Pathpath_fn
Intersection between Two Pathspath_intersection
Linear Interpolation Pathpath_lerp
Ray Pathpath_ray
Rectangle Pathpath_rect
Path along a Shapepath_shape
Repeat a Characterrepch
Reset Console Stylereset
Save Cursor Positionsave_cursor
Show Cursorshow_cursor
Add Color & Attributes to a Characterstyle
Unicode SymbolsSym
Determine Terminal Sizeterm_dim
Vertical Linevline
Draw Vertical Linevline_at
Write String to Terminalwr
Return Screen to Blank Statewrapup
Write At a Specific Locationwrat
Write Character to Terminalwrch
Write Character to Terminal at Specified Locationwrchat
Echo Keypress to Screenwrkp
Echo Keypress to Screen in a Loopwrkpl