Skip to main content

Interactive shell to manipulate Commodore files

Project description

cbmshell

This Python module provides an interactive shell to read and write files to disk image files (.d64, .d71, .d80, .d81, .d82) and tape image files (.t64, .tap) used by various Commodore microcomputer emulators and tools.

It permits moving files between images and the local file system as well as other actions such as directory listing and file deletion.

It provides many common benefits of a traditional UNIX shell including filename completion, command history and output redirection.

Quickstart Guide

The shell is started by running the cbm-shell command, this presents the prompt

(cbm)

The list of available commands is shown by the help command

(cbm) help

Documented commands (use 'help -v' for verbose/'help <topic>' for details):
===========================================================================
alias   detach     help     lock   quit          shell      unlock
attach  directory  history  macro  run_pyscript  shortcuts
copy    edit       images   mkdir  run_script    token_set
delete  file       list     py     set           unlist

Detail information for a command is shown using help <command>.

Disk images need to be attached to a drive number in order to be used.

(cbm) attach mydisk.d64
Attached mydisk.d64 to 0

Up to ten images can be attached at any one time.

Files in an image can be addressed by prefixing the drive number followed by a colon. For example, to list a BASIC program in the image

(cbm) list 0:PRINT
5 INPUT"UPPER OR LOWER";C$:SA=0:IFC$="L"THENSA=7
10 INPUT"FILENAME";F$
11 OPEN4,4,SA
15 OPEN2,8,2,F$+",S,R"
20 GET#2,A$:IFST<>0THENPRINT#4:CLOSE4:CLOSE2:END
21 IFA$="π"THENA$=","
30 PRINT#4,A$;:GOTO20

Full documentation on Read the Docs.

TODO

  • more commands

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cbmshell-1.3.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cbmshell-1.3-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file cbmshell-1.3.tar.gz.

File metadata

  • Download URL: cbmshell-1.3.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for cbmshell-1.3.tar.gz
Algorithm Hash digest
SHA256 67c9cc37f268a990300e66a9d1ec83a753d2e57e91544c41ee49176ec10d8548
MD5 610ff77e7015d266afaf9a37bcda8ac8
BLAKE2b-256 df382a90fb4008a95d8451b07f639c8228a6c38714a5985298feb7fd6a8b65dd

See more details on using hashes here.

File details

Details for the file cbmshell-1.3-py3-none-any.whl.

File metadata

  • Download URL: cbmshell-1.3-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for cbmshell-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c9e158537ec8aafe7551c667d5d07869472f820d09683e13d39f4717c1ee1459
MD5 d76c35ad055666e5f990af0b124c4911
BLAKE2b-256 c174c4d457e9f666549b29cf0cd80cc0d93361f4119d4549a2ba3e15b91df5be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page