Skip to content

Commit

Permalink
Removes images.sixel_cursor_conformance config option.
Browse files Browse the repository at this point in the history
  • Loading branch information
Utkarsh-khambra committed Sep 20, 2022
1 parent aef7a5c commit 753566d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
<ul>
<li>Fixes a problem with oversized glyphs being wrongly cut off (#821).</li>
<li>Fixes vertical cursor movement for sixel graphics with only newlines (#822)</li>
<li>Removes `images.sixel_cursor_conformance` config option</li>
</ul>
</description>
</release>
Expand Down
1 change: 0 additions & 1 deletion src/contour/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,6 @@ void loadConfigFromFile(Config& _config, FileSystem::path const& _fileName)
}

tryLoadValue(usedKeys, doc, "images.sixel_scrolling", _config.sixelScrolling);
tryLoadValue(usedKeys, doc, "images.sixel_cursor_conformance", _config.sixelCursorConformance);
tryLoadValue(usedKeys, doc, "images.sixel_register_count", _config.maxImageColorRegisters);
tryLoadValue(usedKeys, doc, "images.max_width", _config.maxImageSize.width);
tryLoadValue(usedKeys, doc, "images.max_height", _config.maxImageSize.height);
Expand Down
1 change: 0 additions & 1 deletion src/contour/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ struct Config
std::shared_ptr<logstore::Sink> loggingSink;

bool sixelScrolling = true;
bool sixelCursorConformance = true;
terminal::ImageSize maxImageSize = {}; // default to runtime system screen size.
unsigned maxImageColorRegisters = 4096;

Expand Down
4 changes: 2 additions & 2 deletions src/contour/TerminalSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ TerminalSession::TerminalSession(unique_ptr<Pty> _pty, ContourGuiApp& _app):
config_.bypassMouseProtocolModifier, // TODO: you too
config_.maxImageSize,
config_.maxImageColorRegisters,
config_.sixelCursorConformance,
true,
profile_.colors,
50.0,
config_.reflowOnResize,
Expand Down Expand Up @@ -1088,7 +1088,7 @@ void TerminalSession::configureTerminal()

SessionLog()("Setting terminal ID to {}.", profile_.terminalId);
terminal_.setTerminalId(profile_.terminalId);
terminal_.setSixelCursorConformance(config_.sixelCursorConformance);
terminal_.setSixelCursorConformance(true);
terminal_.setMaxImageColorRegisters(config_.maxImageColorRegisters);
terminal_.setMaxImageSize(config_.maxImageSize);
terminal_.setMode(terminal::DECMode::NoSixelScrolling, !config_.sixelScrolling);
Expand Down
3 changes: 0 additions & 3 deletions src/contour/contour.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ images:
sixel_scrolling: true
# Configures the maximum number of color registers available when rendering Sixel graphics.
sixel_register_count: 4096
# If enabled, the ANSI text cursor is placed at the position of the sixel graphics cursor after
# image rendering, otherwise (if disabled) the cursor is placed underneath the image.
sixel_cursor_conformance: true
# maximum width in pixels of an image to be accepted (0 defaults to system screen pixel width)
max_width: 0
# maximum height in pixels of an image to be accepted (0 defaults to system screen pixel height)
Expand Down

0 comments on commit 753566d

Please sign in to comment.