{"id":28384463,"url":"https://github.com/sundanc/sdn","last_synced_at":"2026-04-28T10:36:04.461Z","repository":{"id":294371736,"uuid":"986655178","full_name":"sundanc/sdn","owner":"sundanc","description":"Custom terminal emulator and integrated shell built with GTK+3 and VTE, featuring command history, autocompletion, aliases, and theming.","archived":false,"fork":false,"pushed_at":"2025-05-24T07:23:52.000Z","size":1040,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T23:35:24.204Z","etag":null,"topics":["c","shell","terminal","unix"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sundanc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-19T23:59:43.000Z","updated_at":"2025-06-19T06:47:51.000Z","dependencies_parsed_at":"2025-06-25T23:31:11.585Z","dependency_job_id":"3b0b48f0-4d94-430c-9395-19d51bfcb183","html_url":"https://github.com/sundanc/sdn","commit_stats":null,"previous_names":["sundanc/sdn"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sundanc/sdn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundanc%2Fsdn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundanc%2Fsdn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundanc%2Fsdn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundanc%2Fsdn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sundanc","download_url":"https://codeload.github.com/sundanc/sdn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundanc%2Fsdn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32377587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T09:24:15.638Z","status":"ssl_error","status_checked_at":"2026-04-28T09:24:15.071Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","shell","terminal","unix"],"created_at":"2025-05-30T08:38:45.400Z","updated_at":"2026-04-28T10:36:04.444Z","avatar_url":"https://github.com/sundanc.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SDN Terminal\n\nA custom terminal emulator with an integrated shell.\n\n## Features\n\n- **Command Execution**: Run standard Unix commands.\n- **Pipelines**: Chain commands using `|`.\n- **Redirection**: Support for input (`\u003c`), output (`\u003e`), and append (`\u003e\u003e`) redirection.\n- **Background Processes**: Use `\u0026` to run commands in the background. Shell notifies when background processes complete.\n- **Command History**:\n  - View history with `history`. Entries are timestamped.\n  - Navigate history using Up/Down arrows.\n  - Persistent history saved to `~/.sdn_history`.\n- **Autocompletion**:\n  - Tab completion for commands (with inline suggestions) and filenames/directories.\n  - Completes to the longest common prefix for multiple file/directory matches.\n  - Displays matching filenames/directories if multiple options exist after a Tab press.\n- **Wildcard Expansion (Globbing)**: Supports `*`, `?`, `[]`, and `{}` patterns for filename expansion in command arguments.\n- **Alias Support**:\n  - Define and use aliases for commands (e.g., `alias ll=\"ls -al\"`).\n  - Manage aliases with `alias` and `unalias` commands.\n- **Directory-Local Aliases**: Automatically loads aliases from a `.sdn_local_aliases` file in the current directory when you `cd` into it. These aliases are cleared when you `cd` out. This allows for project-specific command shortcuts.\n- **Built-in Commands**:\n  - `cd`: Change directory.\n  - `exit`: Exit the shell.\n  - `history`: Show command history.\n- **Interactive Editing**: Backspace, arrow keys, and Ctrl+D for input control.\n- **Error Handling**: Informative messages for syntax and execution errors.\n- **Terminal Features**:\n  - Copy/Paste with Ctrl+Shift+C and Ctrl+Shift+V\n  - Customizable colors via command-line themes (dark (default), light, light-blue, gray)\n  - 10,000 lines of scrollback buffer\n\n## Building and Installation\n\n### Dependencies\n\nThe terminal requires the following libraries:\n- GTK+ 3.0\n- VTE 2.91 (Virtual Terminal Emulator)\n\nOn Ubuntu/Debian, install dependencies with:\n```bash\nsudo apt-get install libgtk-3-dev libvte-2.91-dev\n```\n\nOn Fedora:\n```bash\nsudo dnf install gtk3-devel vte291-devel\n```\n\nOn Arch Linux:\n```bash\nsudo pacman -S gtk3 vte3\n```\n\n### Building\n\nUse the included Makefile:\n\n```bash\nmake\n```\n\nThis builds both the `sdn` shell and the `sdn_terminal` application.\n\n### Installation\n\nTo install the applications to your user directory:\n\n```bash\nmake install\n```\n\nThis installs to `~/.local/bin/` and adds a desktop entry.\n\n## Running\n\nYou can run the terminal emulator in several ways:\n\n1. From the build directory:\n   ```bash\n   ./sdn_terminal\n   ```\n\n2. If installed:\n   ```bash\n   sdn_terminal\n   # To use a specific theme, for example \"light\":\n   sdn_terminal --theme light\n   # Available themes: dark(default), light, light-blue, gray\n   ```\n\n3. From your desktop environment's application menu (search for \"SDN Terminal\")\n   \n   **Note:** The desktop entry (`sdn.desktop`) uses the `Exec` field to launch `sdn_terminal` from your user install location. \n   If you are installing from a release archive (e.g, `sdn-0.1.tar.gz`), the `sdn.desktop` file within the archive will have a placeholder username in the `Exec` path (e.g., `Exec=/home/your_username/.local/bin/sdn_terminal`). \n   You **must** manually edit this file after installation (usually found in `~/.local/share/applications/sdn.desktop`) and replace `your_username` with your actual username for the desktop entry to work correctly.\n   By default, if you build and install from source using `make install`, the `Exec` path in the `sdn.desktop` file copied to `~/.local/share/applications/` should reflect the username of the user who ran the install command. However, always verify this path if the desktop entry doesn't work.\n\n## Using Just the Shell\n\nIf you want to use the SDN shell without the terminal emulator:\n\n```bash\n./sdn\n```\n\nOr if installed:\n```bash\nsdn\n```\n\n## Uninstallation\n\nTo uninstall:\n\n```bash\nmake uninstall\n```\n\n## Keyboard Shortcuts\n\n- `Ctrl+Shift+C`: Copy selected text\n- `Ctrl+Shift+V`: Paste from clipboard\n- `Ctrl+Shift+T`: Open a new tab\n- `Ctrl+W`: Close the current tab\n- `Alt+[1-9]`: Switch to tab 1 through 9\n- `Alt+0`: Switch to tab 10\n- `Ctrl+D`: Exit the shell","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsundanc%2Fsdn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsundanc%2Fsdn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsundanc%2Fsdn/lists"}