Skip to content

Load/save ans#65

Open
AdrianGroty wants to merge 14 commits intodevottys:masterfrom
AdrianGroty:load_ans
Open

Load/save ans#65
AdrianGroty wants to merge 14 commits intodevottys:masterfrom
AdrianGroty:load_ans

Conversation

@AdrianGroty
Copy link
Contributor

@AdrianGroty AdrianGroty commented Feb 9, 2026

load .ans files
handle cp437, iso8599-1, utf-8
handle blinking, ice colors, 256 colors, modern escape codes, pablodraw 24-bit RGB codes
vd options for width (in columns), ice/blink, and encoding
feat. Claude, Gemini, ChatGPT, and Grok

load .ans files
add vd options for # columns, ice colors, and text encoding
ansi>ddw conversion logic
include SAUCE record at top of backing sheet
@AdrianGroty
Copy link
Contributor Author

Now with SAUCE

cache rgb conversions
refactor `to_ddw_row()`
remove debug prints
refactor sgr handling
move label from id column to type column
I have no idea what I'm doing.
add visidata option to convert 16-color ANSI codes to VGA palette
use `16` instead of `0` when converting RGB (0, 0, 0)
@AdrianGroty AdrianGroty changed the title Load ans Load ans #42 Feb 19, 2026
@AdrianGroty AdrianGroty changed the title Load ans #42 Load ans Feb 19, 2026
@AdrianGroty
Copy link
Contributor Author

Oh, and #42 (Mostly. .ans can only be saved in UTF-8 with 256 color codes, and I still kind of want to get ANSI music working, but this should otherwise load any ANSI art, legacy or modern.)

implement ansi compatibility options for saving:
    -encoding (cp437/amiga/utf-8)
    -color modes (SGR, xterm-256, Palblodraw 24bit RGB)
    -#columns
    -iCE/blinking
    -VGA colors
implement SAUCE record saving
@AdrianGroty AdrianGroty changed the title Load ans Load/save ans Mar 21, 2026
@AdrianGroty
Copy link
Contributor Author

AdrianGroty commented Mar 21, 2026

All features from #42 implemented (except pc speaker music, which I can live without)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant