Deutsch English Français Italiano |
<mailman.3.1715719041.2909.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail From: Mirko <mirkok.lists@googlemail.com> Newsgroups: comp.lang.python Subject: Re: Terminal Emulator Date: Tue, 14 May 2024 22:37:17 +0200 Lines: 26 Message-ID: <mailman.3.1715719041.2909.python-list@python.org> References: <fqN0O.38287$ZZU.19060@fx07.ams4> <a5593057-8c23-44ca-a1b1-764016ac9f35@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de YEPzMKgFWqg9GFdJ4Tvs8QL/dxZPuonH1d6zxXb8fPPw== Cancel-Lock: sha1:AyYSMZAEZnrWvIraJ+mgfLlxYlw= sha256:qGpyXit1qrwFur400FAkNKKX4MypUrk+uRLfl66iqWg= Return-Path: <mirkok.lists@googlemail.com> X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org Authentication-Results: mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=googlemail.com header.i=@googlemail.com header.b=fYEIPH7y; dkim-adsp=pass; dkim-atps=neutral X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '(which': 0.04; 'fairly': 0.05; 'gui': 0.05; 'python.': 0.08; 'from:addr:googlemail.com': 0.09; 'message-id:@googlemail.com': 0.09; 'schrieb': 0.09; 'terminal': 0.09; 'that.': 0.15; '102,': 0.16; 'cases,': 0.16; 'gtk': 0.16; 'idea.': 0.16; 'standard,': 0.16; 'terminals': 0.16; 'python': 0.16; 'to:addr:python-list': 0.20; 'input': 0.21; 'written': 0.22; 'python,': 0.25; 'depends': 0.25; 'header:User- Agent:1': 0.30; 'dec': 0.31; 'mean': 0.34; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34; 'runs': 0.35; 'processes': 0.36; 'text': 0.39; 'use': 0.39; 'both': 0.40; 'something': 0.40; 'want': 0.40; 'try': 0.40; 'true': 0.63; 'with:': 0.64; 'look': 0.65; 'wish': 0.66; 'let': 0.66; 'shows': 0.67; 'virtual': 0.71; 'low': 0.74; 'received:37': 0.78; '220,': 0.84; 'getty': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1715719039; x=1716323839; darn=python.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=wLDWy3i9IYV1QW0EBC42wVMW0johtCTxoDVOnyGIOQI=; b=fYEIPH7yOxSqWfu/3eVBNs+PzzexPhPXxd3Bb9ynYdbK90TKJeUcc5razr3P4R425i e7X4u1K90mWGkb+J/LnIV0unpSBF0EcofOwJzqDScC6d27jHiWK2BXycxxn+GdfHbhZE 4Z5BZbTCcSjj4x+r7vF1NRGfs0nc7ml9C8r4jSMt6A/nrV3EF61arAtJrqPPlCik0rW3 O/3SMSmEOVVfEJUMytOJ27U+PqZ2Fsxiaruun5Tp+g3YIx4RS+qZNGaQe43+7eobMh7w oqX2eT33QyfOGxjt8uyxqrQBJZ8oS/TGHVNYmxg0MbxiZ+I2HkIr5tzIT9uK5R6mmnOY KJ1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715719039; x=1716323839; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wLDWy3i9IYV1QW0EBC42wVMW0johtCTxoDVOnyGIOQI=; b=HB+8XqkqpWaeyWQI/sznClSc2LilLqlImIVzn0uf1cORi9cYPWKfiYdfPsVxW8FcTh j6vBqHt9unBJW2F2XnJyBDpty1ZSSDlz2pN7bLIfjrkIpcmH6iI8Z88/qwQH7npZW0Fr +2LzAnjvKJCf7sHC3AJ7rLkio+GHEuS8K2qJop337q1G34DKA43+AEc+GuKT0WaOhDWd CJrtbCGCRX38sjUBu5CKRZw/p7gJvwFHXhOccd64fSVeFbn8ouysW69MOnqy+PxJ35rc 8nswZWpCozqVt8bB2f/yO26B9yX/8s97uTQYsI4QLY6KBLMzd5q4P3XgrT1PGNXAq6dG e4vQ== X-Gm-Message-State: AOJu0YzEpmBQJ7KbIzyOeLYYACx6ff06WADUYpu5dUiuFhyjqRUHOy/H FXb8PKCaC2QkUpMob0QPBOXgjgh4r5V00QVv/41PO2sqk4iRHMQ0qpENCA== X-Google-Smtp-Source: AGHT+IEhitx2rk8xA2l85K1LMQCMk2tY4wMT/YCDMiVRaZlO5o3BHk5VCt4G/fltPddao/ST8nB7fA== X-Received: by 2002:a2e:80c3:0:b0:2df:c2b:8c84 with SMTP id 38308e7fff4ca-2e51fd4adb7mr86930241fa.1.1715719039105; Tue, 14 May 2024 13:37:19 -0700 (PDT) User-Agent: Mozilla Thunderbird Content-Language: de-DE, en-US In-Reply-To: <fqN0O.38287$ZZU.19060@fx07.ams4> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: General discussion list for the Python programming language <python-list.python.org> List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> List-Archive: <https://mail.python.org/pipermail/python-list/> List-Post: <mailto:python-list@python.org> List-Help: <mailto:python-list-request@python.org?subject=help> List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> X-Mailman-Original-Message-ID: <a5593057-8c23-44ca-a1b1-764016ac9f35@googlemail.com> X-Mailman-Original-References: <fqN0O.38287$ZZU.19060@fx07.ams4> Bytes: 5833 Am 14.05.24 um 19:44 schrieb Gordinator via Python-list: > I wish to write a terminal emulator in Python. I am a fairly > competent Python user, and I wish to try a new project idea. What > references can I use when writing my terminal emulator? I wish for > it to be a true terminal emulator as well, not just a Tk text widget > or something like that. > > If you have any advice, please do let me know! Not sure, what you mean with: > true terminal emulator as well, not just a Tk text widget or something like that If you want to write a GUI terminal, than that *is* a terminal emulator and *has* a text widget as its visible core. If you want to write something like getty which runs on the virtual terminals (Ctrl+Alt+F*) than that is a terminal (not a terminal emulator). In both cases, you write something that gets input from the keyboard, processes it and shows the result. How that processing is done, depends on the terminal standard, like DEC VT{100, 102, 220, 320, etc}. For a start, you might want to look at Terminator, which is a terminal emulator written in Python, Gtk and libvte (which does all the low level stuff).