{"id":2561,"date":"2025-03-22T12:53:00","date_gmt":"2025-03-22T12:53:00","guid":{"rendered":"https:\/\/cdblog.cdstealer.com\/?p=2561"},"modified":"2025-03-22T16:49:39","modified_gmt":"2025-03-22T16:49:39","slug":"c64-gnome-terminal","status":"publish","type":"post","link":"https:\/\/cdblog.cdstealer.com\/?p=2561","title":{"rendered":"C64 Gnome Terminal"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"852\" height=\"485\" src=\"https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/Screenshot-from-2025-03-22-16-48-59.png\" alt=\"\" class=\"wp-image-2570\" srcset=\"https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/Screenshot-from-2025-03-22-16-48-59.png 852w, https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/Screenshot-from-2025-03-22-16-48-59-300x171.png 300w, https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/Screenshot-from-2025-03-22-16-48-59-150x85.png 150w\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Create the file .bash_c64 in your home directory and populate with the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/usr\/bin\/env bash\nexport PS1=$\nrow=0\nmem=$(grep MemTotal \/proc\/meminfo | awk '{print $2}')\nmem=$((${mem}\/1024))\nfree=$(( $(vmstat | sed '1,2d' | awk '{print $4}') * 4096 * 2))\ntext=(\"\" \"**** BASH $BASH_VERSION ****\" \"\" \"${mem}K RAM SYSTEM ${free} BASIC BYTES FREE\" \"\")\nclear\nfor f in \"${text&#91;@]}\"; do\n  columns=$(( ($(tput cols) - ${#f}) \/ 2))\n  tput cup $(( row++ )) ${columns}\n  echo \"${f}\"\ndone\necho \"READY.\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now we'll source the file whenever a new terminal is opened.  Open .bashrc and at the bottom enter the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source ~\/.bash_c64<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Next we'll install the c64 font.  Download the file below and unpack to \/home\/&lt;user&gt;\/.local\/share\/fonts<\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-c5fde4f8-042d-4eb5-9f34-85143e25ed88\" href=\"https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/C64_Pro_Mono-STYLE.zip\">C64_Pro_Mono-STYLE<\/a><a href=\"https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/C64_Pro_Mono-STYLE.zip\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-c5fde4f8-042d-4eb5-9f34-85143e25ed88\">Download<\/a><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now open the terminal preferences and create a new profile and configure the basic settings.  I've chosen 49 chars wide purely for aesthetics but this will differ depending on your resources.  The text will be centred regardless. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"773\" height=\"577\" src=\"https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/Screenshot-from-2025-03-22-12-44-10.png\" alt=\"\" class=\"wp-image-2564\" srcset=\"https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/Screenshot-from-2025-03-22-12-44-10.png 773w, https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/Screenshot-from-2025-03-22-12-44-10-300x224.png 300w, https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/Screenshot-from-2025-03-22-12-44-10-150x112.png 150w\" sizes=\"auto, (max-width: 773px) 100vw, 773px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now to define the colours. I set the defaults to the following values:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Text: #7c71da<br>Background: #3e32a2<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"773\" height=\"610\" src=\"https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/Screenshot-from-2025-03-22-12-47-27.png\" alt=\"\" class=\"wp-image-2565\" srcset=\"https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/Screenshot-from-2025-03-22-12-47-27.png 773w, https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/Screenshot-from-2025-03-22-12-47-27-300x237.png 300w, https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/Screenshot-from-2025-03-22-12-47-27-150x118.png 150w\" sizes=\"auto, (max-width: 773px) 100vw, 773px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Set the profile to be the default (optional) and close.<br>You'll need to close and reopen terminal and you should be presented with a c64esk termnial.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create the file .bash_c64 in your home directory and populate with the following: Now we'll source the file whenever a new terminal is opened. Open .bashrc and at the bottom enter the following: Next we'll install the c64 font. Download the file below and unpack to \/home\/&lt;user&gt;\/.local\/share\/fonts Now open the terminal preferences and create a &hellip; <a href=\"https:\/\/cdblog.cdstealer.com\/?p=2561\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">C64 Gnome Terminal<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[86,353,78],"class_list":["post-2561","post","type-post","status-publish","format-standard","hentry","category-gentoo","tag-bash","tag-c64","tag-gnome-terminal"],"_links":{"self":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/2561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2561"}],"version-history":[{"count":3,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/2561\/revisions"}],"predecessor-version":[{"id":2571,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/2561\/revisions\/2571"}],"wp:attachment":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}