Sixel

The Wikipedia logo converted to the Sixel format and rendered in Konsole.

Sixel, short for "six pixels", is a bitmap graphics format supported by terminals and printers from DEC. It consists of a pattern six pixels high and one wide, resulting in 64 possible patterns. Each possible pattern is assigned an ASCII character, making the sixels easy to transmit on 7-bit serial links.

Sixel was first introduced as a way of sending bitmap graphics to DEC dot matrix printers like the LA50. After being put into "sixel mode" the following data was interpreted to directly control six of the pins in the nine-pin print head. A string of sixel characters encodes a single 6-pixel high row of the image.

The system was later re-used as a way to send bitmap data to the VT200 series and VT320 terminals when defining custom character sets. A series of sixels are used to transfer the bitmap for each character. This feature is known as soft character sets or dynamically redefinable character sets (DRCS). With the VT240, VT241, VT330, and VT340, the terminals could decode a complete sixel image to the screen, like those previously sent to printers.

Description

Sixel encodes images by breaking up the bitmap into a series of 6-pixel high horizontal strips. Each 1-pixel-wide vertical column in a particular strip forms a single sixel. Each sixel's pixels are read as binary and encoded into a single 6-bit number, with "on" pixels encoded as a 1. This number, from 0 to 63 decimal, is then converted into a single ASCII character, offset by 63 so that an all-black sixel, 0 decimal, is encoded as ?. This ensures that the sixels remain within the printable character range of the ASCII character set. Carriage return (CR) is represented by $, and line feeds (LF) with a -; both had to be sent in turn to return the cursor to the start of the line, CRLF.

Sixel also includes a rudimentary form of compression, using run-length encoding (RLE). This is accomplished with the ! character followed by a decimal number of the times to repeat, and then a single sixel character to be repeated. Since the ! and decimal digits cannot be valid sixel data, lying outside the encoded range, the encoding is easy to identify and expand back out in software.

"Sixel mode" is entered by sending the sequence ESC+Pp1;p2;p3;q. The p1 through p3 were optional setup parameters, with p1 defining an aspect ratio (deprecated in favor of p3), p2 how to interpret the color of zeros, and p3 with simple grid size parameters. ESC+P is the standard DEC "Device Control String", or DCS, which was used to turn on or off a number of special features in DEC's equipment. The "q" is the sixel identifier.[a] Sixel data then followed the q. The "String Terminator" sequence ESC+\ returned the device back to normal character mode again.

For printing, sixels are sent to the printer, decoded back into binary, and sent directly to six pins in the print head. The only complexity involved expanding the RLEs into the internal print buffer. Display on a terminal is somewhat more difficult. On terminals supporting graphics, the ReGIS graphics system was used to directly draw the sixel pattern into the screen's bitmap. This was done at high speed by storing the bitmap patterns as a glyph and then blitting them.

When used for defining custom character sets the format was almost identical, although the escape codes changed. In terms of the data, the only major difference is the replacement of the separate CR/LF with a single /. In the VT300 series for instance, 80-column character glyphs were 15 pixels wide by 12 high, meaning that a character could be defined by sending a total of 30 sixels.

Color is also supported using the # character, followed by a number referring to one of a number of color registers, which varied from device to device. The colors in the registers are defined using either RGB or HLS values in a peculiar DEC format. To create a color image on a printer, a line of sixels is sent several times, each representing a single bitplane from the register-based colors on the terminals (normally 2 or 4 bits). Since the capabilities of the hardware vary widely, a color sixel drawing can only be output to targeted devices. Non-graphics terminals generally silently ignore sixel escape sequences.

Sample

The sample Sixel code that says "HI" displayed in a xterm with VT340 emulation.
 ␛Pq
 #0;2;0;0;0#1;2;100;100;0#2;2;0;100;0
 #1~~@@vv@@~~@@~~$
 #2??}}GG}}??}}??-
 #1!14@
 ␛\

The example above enters sixel mode, sets up three color registers, and then uses those registers to draw sixels in those colors. The #0;2;0;0;0 is interpreted as "set color register 0, use mode 2 (RGB mode), set R, G and B to 0%". This sets color 0 to black, and the following commands set register 1 to yellow (100%, 100%, 0%) and 2 to green (0%, 100%, 0%). Unlike most modern systems which assign an 8-bit value (0–255) to each color channel, RGB mode is based on "intensity" of each channel from 0% to 100%.

The data lines following select a color, yellow for the first and third and green for the middle, then draw sixels. The last line shows the RLE in use, meaning "repeat @ (0b100000) 14 times". The final output is 14 pixels by 7 pixels, so the last line simply repeats 0b100000 14 times to fill the last line. $ at the end of a line means that the next line will overprint the current line, while - means that the next line represents a new line of sixels.

Notes

  1. ^ Lower-case "p" was the ReGIS identifier.

See also

  • ReGIS – a means of displaying vector graphics on later DEC VT-series terminals
  • Semigraphics – text-based graphics, including "squot" sub-character square blocks

References

  • "VT330/VT340 Programmer Reference Manual, Volume 2: Graphics Programming", Digital, EK-VT3XX-GP-002, May 1988
  • Chris Chiesa, All About SIXELs, 29 September 1990
  • Moy, Edward; Gildea, Stephen; Dickey, Thomas (31 December 2023). "XTerm Control Sequences". XTerm manual.

Read other articles:

Avigdor LiebermanMenteri Luar Negeri IsraelMasa jabatan1 April 2009 – 15 December 2012Perdana MenteriBenjamin NetanyahuWakilDanny AyalonPendahuluTzipi LivniMinister of Strategic AffairsMasa jabatan30 October 2006 – 18 January 2008Perdana MenteriEhud OlmertPendahuluNew officePenggantiEhud OlmertMinister of Transport, National Infrastructure and Road SafetyMasa jabatan28 February 2003 – 6 June 2004Perdana MenteriAriel SharonPendahuluTzachi HanegbiPenggantiMeir S...

 

This article does not cite any sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Live at AVO Session Basel – news · newspapers · books · scholar · JSTOR (June 2016) (Learn how and when to remove this template message) 2009 video by Jethro TullLive at AVO Session BaselVideo by Jethro TullReleased2009Recorded2008GenreRockLabelEdelJethro Tull chronology...

 

Ini adalah nama Korea; marganya adalah Ryu. Ryu Si-wonLahir6 Oktober 1971 (umur 52)Korea SelatanPekerjaanAktor, penyanyi, fotograferNama KoreaHangul류시원 Hanja柳時元 Alih AksaraRyu Si-wonMcCune–ReischauerRyu Si-wŏn Ryu Si-won (lahir 6 Oktober 1971) adalah aktor dan penyanyi asal Korea Selatan. Setelah ia memulai debutnya dalam drama KBS Feeling (느낌) pada tahun 1994, Ryu mengejar karier menyanyi. Serial TV 1994: Feeling (KBS) 1995: The Campus Love Song (MBC) 1995: Blue Sky (...

Buffalo Canoe Club Grímpola del BCCDatos generalesAcrónimo BCCFundación 1882Ubicación Ridgeway, (Ontario)Web oficial[editar datos en Wikidata] El Club de Canotaje de Búfalo (Buffalo Canoe Club en idioma inglés y oficialmente) es un club náutico ubicado en Ridgeway (Fort Erie), Canadá. Historia Fue fundado en 1882 por Williams Lansing y otros aficionados al canotaje en la ciudad de Búfalo (Nueva York), Estados Unidos. Inicialmente se ubicó en la calle Hamilton,[1]​ pe...

 

Артем Тєрєхов Особисті дані Повне ім'я Артем Віталійович Тєрєхов Народження 31 березня 1992(1992-03-31) (31 рік)   Іларіонове, Дніпропетровська область, Україна Зріст 189 см Вага 80 кг Громадянство  Україна Позиція захисник Інформація про клуб Поточний клуб ФСК «Маріуполь»

 

село СтракошStracoș Країна  Румунія Повіт  Біхор Комуна Дреджешть Код SIRUTA 29378 Поштові індекси 417262 Телефонний код +40 259 (Romtelecom, TR)+40 359 (інші оператори) Координати 46°54′39″ пн. ш. 22°08′42″ сх. д.H G O Висота 207 м.н.р.м. Населення 292 (2002) Розташування Стракош (рум. Stracoș) — с

Wappen Deutschlandkarte 50.1522222222226.6908333333333550Koordinaten: 50° 9′ N, 6° 41′ O Basisdaten Bundesland: Rheinland-Pfalz Landkreis: Vulkaneifel Verbandsgemeinde: Gerolstein Höhe: 550 m ü. NHN Fläche: 9,07 km2 Einwohner: 317 (31. Dez. 2022)[1] Bevölkerungsdichte: 35 Einwohner je km2 Postleitzahl: 54570 Vorwahl: 06599 Kfz-Kennzeichen: DAU Gemeindeschlüssel: 07 2 33 060 Adresse der Verbandsverwaltung: ...

 

Roshini Roshini (Trichy) is een Indiase playback-zangeres uit de deelstaat Tamil Nadu. Ze zingt liedjes voor Telugu- en Tamil-films. Haar eerste song was voor de film 'Aaha enna porutham' en haar eerste hit was 'Pottu thaakku' in de Tamil-film 'Kuthu'. Andere succesvolle liedjes waren er voor de films 'Pattiya', 'Thaamirabharani' en 'Yaaradi Nee Mohini'. Met haar zuster haalde ze ooit het Guinness Book of World Records door 37 uur nonstop te zingen.

 

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (مارس 2019) والتر هاميلتون معلومات شخصية تاريخ الميلاد 10 مارس 1863  تاريخ الوفاة 1 سبتمبر 1955 (92 سنة)   مواطنة أستراليا المملكة المتحدة لبريطانيا العظمى وأيرلندا  منا...

العلاقات المالديفية الطاجيكستانية طاجيكستان   المالديف   طاجيكستان تعديل مصدري - تعديل   العلاقات المالديفية الطاجيكستانية هي العلاقات الثنائية التي تجمع بين المالديف وطاجيكستان.[1][2][3][4][5] مقارنة بين البلدين هذه مقارنة عامة ومرجعية للدو...

 

2015 studio album by Don HenleyCass CountyStudio album by Don HenleyReleasedSeptember 25, 2015Recorded2014–2015StudioRed Oak Studios and Luminous Sound (Dallas, Texas); Allentown Studios, Sound Emporium, Blackbird Studio and House of Blues Studios (Nashville, Tennessee)GenreCountry, rockLength48:43LabelPast Masters Holdings, Capitol RecordsProducerDon Henley, Stan LynchDon Henley chronology The Very Best of Don Henley(2009) Cass County(2015) Cass County is the fifth solo studio albu...

 

SMA Negeri 8 DepokInformasiDidirikan15 Agustus 2011JenisNegeriAkreditasiA[1]Nomor Statistik Sekolah301026608008Nomor Pokok Sekolah Nasional20270492Kepala SekolahAgus Suparman, S.PdJumlah kelasX: 9, XI: 9, XII: 9Jurusan atau peminatanIPA & IPSRentang kelasX, XI, XIIKurikulumKurikulum 2013StatusSekolah Standar NasionalAlamatLokasiJalan M. Nasir №84, Cilodong, Kec. Cilodong, Depok, Jawa Barat, IndonesiaTel./Faks.(021) 87915148Koordinat-6.424524,106.846922Situs webSit...

Multinational automotive manufacturing conglomerate This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article may be in need of reorganization to comply with Wikipedia's layout guidelines. Please help by editing the article to make improvements to the overall structure. (December 2020) (Learn how and when to remove this template message) This article needs to be updated. Please help up...

 

Muhammad RizkyLahir8 Desember 1978 (umur 44)Palembang, Sumatera SelatanPekerjaanPembawa acara berita TV Muhammad Rizky (lahir 8 Desember 1978) adalah seorang jurnalis Indonesia. Ia merupakan pembawa acara berita di TV One dan pernah membawakan Reportase di Trans TV.[1][2] Pada Pemilu Legislatif 2014 ia ikut menjadi calon legislatif (caleg) DPR-RI dari Partai Golkar melalui Daerah Pemilihan (Dapil) Sumatera Selatan I, yang mencakup wilayah Palembang, Banyuasin, Musirawas d...

 

Lambang Morbihan Peta Morbihan Morbihan (56) (bahasa Breton: Mor-Bihan) ialah sebuah departemen di Prancis yang terletak di kawasan Bretagne. Sejarah Departemen ini adalah salah satu dari 83 departemen yang diciptakan pada masa Revolusi Prancis, pada 4 Maret 1790 yang telah disahkan secara hukum pada 22 Desember 1789. Geografi Morbihan berbatasan dengan departemen Finistère di barat, Côtes d'Armor di utara, dan Ille et Vilaine di timur. Di bagian selatan terletaklah Samudra Atlantik. Di sin...

Jibin George SebastianBornKochi, Kerala, IndiaOccupation(s)Music Composer, LyricistYears active2009–presentKnown forUnbridled, Rakshapurushan , Beat of Indian Youth , PoradidamSpouseAnuja Mary Thomas [1] Jibin George Sebastian is an Indian music composer, lyricist and entrepreneur from Kochi, Kerala who predominantly work in Malayalam Movie Industry. He is the first Indian from Kerala to directly debut in Hollywood as the music composer of the song Sometimes I Can't Relate...

 

Para otros usos de este término, véase Coque (desambiguación). Coque El coque es un combustible sólido formado por la destilación de carbón bituminoso calentado a temperaturas de 500 a 1100 °C sin contacto con el aire.[1]​[2]​[3]​ El proceso de destilación implica que se eliminan el alquitrán, gases y agua.[3]​ Este combustible o residuo se compone entre un 90 y un 95 % de carbono.[1]​[3]​ El nitrógeno, oxígeno, azufre e hidrógeno est...

 

Olimpiade XVTuan rumahHelsinki, FinlandiaJumlah negara69Jumlah atlet4.925Jumlah disiplin149 dalam 17 cabangPembukaan19 Juli 1952Penutupan3 Agustus 1952Dibuka olehPresiden Juho Kusti PaasikiviKaldronPaavo Nurmi dan Hannes KolehmainenStadionStadion OlimpiadeMusim Panas ← London 1948 Melbourne 1956 → Musim Dingin ← Oslo 1952 Cortina d'Ampezzo 1956 → Olimpiade musim panas ke-15 diadakan pada tahun 1952 di Helsinki, Finlandia. Jumlah atlet olimpiade ini ialah 4.925 orang da...

Northern Irish footballer (born 1967) Sean Connor Connor as Galway United manager.Personal informationDate of birth (1967-07-12) 12 July 1967 (age 56)Place of birth Belfast, Northern IrelandTeam informationCurrent team Cape Town Spurs(technical director)Senior career*Years Team Apps (Gls)1987–1988 Distillery 1988–1990 Port Vale 0 (0)1989–1990 → Macclesfield Town (loan) 1990–1991 Ards 1991 Cliftonville Managerial career2004–2006 Sligo Rovers2006–2007 Bohemians2008–2009 Dun...

 

Serial murder case in Florida Carol City MurdersPart of mass shootings in the United StatesMap of Miami-Dade County highlighting Carol CityLocationCarol City, Florida, United StatesDateOctober 1974–January 1978Attack typeRobbery, rape, murder, mass shootingWeaponsHandgun, knifeDeaths12PerpetratorsJohn Errol FergusonMarvin FrancoisBeauford White The Carol City murders were a series of murders that took place predominantly in Carol City, Florida and in and around Miami-Dade County between Oct...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!