tparted - TUI frontend for parted based on FV lazarus / 65-FV-Textmode IDE ---------------------------------------------------------------------- kagamma · 2024-02-11 02:54 As of Feb 10th the app is considered stable so I decided to make a topic here https://github.com/Kagamma/tparted tparted is a simple, user-friendly Linux utility for creating, reorganizing, and deleting GPT disk partitions, based on Free Vision. It is quite similar to its distant relative gparted, although feature- wise it is still lacking. It uses parted for manipulating partitions and the corresponding filesystem tools to deal with specific filesystems. This is also my first time using the Unicode version of FV, and discovered some of its bugs during the development of this app, see https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/581 and https://gitlab.com/freepascal.org/fpc/source/-/issues/40607. There's also an issue with rendering East Asian characters (see attached image), although I am a noob in this matter and not sure if this is something we can fix on the FV side or simply a limitation when it comes to half-width chars overlapping full-width chars. ---------------------------------------------------------------------- MarkMLl · 2024-02-11 08:31 Well done. Any use of and TLC directed towards FV is a good thing. MarkMLl ---------------------------------------------------------------------- dseligo · 2024-02-11 14:14 Quote from: MarkMLl on February 11, 2024, 09:31:21 amWell done. Any use of and TLC directed towards FV is a good thing. What does TLC mean? Tender Loving Care? ---------------------------------------------------------------------- MarkMLl · 2024-02-11 16:48 Quote from: dseligo on February 11, 2024, 03:14:58 pmWhat does TLC mean? Tender Loving Care? Yes. MarkMLl ---------------------------------------------------------------------- ginoo · 2024-02-12 07:12 compliment, I will try to use it ---------------------------------------------------------------------- rgeorge7 · 2024-12-28 13:51 @kagamma, did you have to build your own installation of fpc to get the fv unicode support?  As I have tried the .deb files from the Lazarus download page and there are no fv unicode ppu files, nor are there any in the fp-units-fv-3.2.2 package from the official Ubuntu repo. ---------------------------------------------------------------------- cdbc · 2024-12-28 15:05 Hi In both my fpcs (3.2.2 and 3.3.1) the unicode files are intermixed with the non-unicode files in directory 'fv' under .../fpcsrc/ They start unitname with 'u', e.g.: 'uviews.pas' Regards Benny ---------------------------------------------------------------------- rgeorge7 · 2024-12-28 22:52 Interesting.  Thanks.  Where did you get you fpcs from??? Here are the contents from the fpc-src and fpc-laz .deb files from the official Lazarus download page.  They're not there: $ dpkg -c fpc-src_3.2.2-210709_amd64.deb | grep views -rw-r--r-- root/root     67193 2015-02-25 02:01 ./usr/share/fpcsrc/3.2.2/packages/ide/wviews.pas -rw-r--r-- root/root    129177 2021-05-13 21:27 ./usr/share/fpcsrc/3.2.2/packages/ide/fpviews.pas -rw-r--r-- root/root     60534 2016-05-24 18:35 ./usr/share/fpcsrc/3.2.2/packages/googleapi/src/googleresourceviews.pp -rw-r--r-- root/root    209185 2021-02-05 02:13 ./usr/share/fpcsrc/3.2.2/packages/fv/src/views.pas $ $ dpkg -c fpc-laz_3.2.2-210709_amd64.deb | grep views -rw-r--r-- root/root    209256 2021-07-09 13:42 ./usr/lib/fpc/3.2.2/units/x86_64-linux/googleapi/googleresourceviews.o -rw-r--r-- root/root    232551 2021-07-09 13:42 ./usr/lib/fpc/3.2.2/un its/x86_64-linux/googleapi/googleresourceviews.ppu -rw-r--r-- root/root    170256 2021-07-09 13:42 ./usr/lib/fpc/3.2.2/units/x86_64-linux/fv/views.o -rw-r--r-- root/root    131831 2021-07-09 13:42 ./usr/lib/fpc/3.2.2/units/x86_64-linux/fv/views.ppu And similarly from the official packages supplied with Ubuntu 24.04 which I have installed currently (I had previously tried the above packages): $ dpkg -L fpc-source-3.2.2 | grep views /usr/share/fpcsrc/3.2.2/packages/fv/src/views.pas /usr/share/fpcsrc/3.2.2/packages/googleapi/src/googleresourceviews.pp /usr/share/fpcsrc/3.2.2/packages/ide/fpviews.pas /usr/share/fpcsrc/3.2.2/packages/ide/wviews.pas $ $ dpkg -L fp-units-fv-3.2.2 | grep views /usr/lib/x86_64-linux-gnu/fpc/3.2.2/units/x86_64-linux/fv/views.o /usr/lib/x86_64-linux-gnu/fpc/3.2.2/units/x86_64-linux/fv/views.ppu $ So, I'm thinking that they are not included in the official releases? ---------------------------------------------------------------------- cdbc · 2024-12-29 01:55 Hi The 3.2.2 sources came with the official version from our PCLinuxOS repo. The 3.3.1 sources came with the installation from FpcUpDeluxe... Regards Benny ---------------------------------------------------------------------- rgeorge7 · 2024-12-29 14:26 Thanks.  I was able to clone the git repo and built fpc from scratch after a steep learning curve.   But I can now compile the app. ---------------------------------------------------------------------- Graeme · 2025-12-19 18:07 Quote from: MarkMLl on February 11, 2024, 09:31:21 amWell done. Any use of and TLC directed towards FV is a good thing. Fully agree!  And considering the resurgence of TUI applications these days, FV is perfect for the job. ---------------------------------------------------------------------- dbannon · 2025-12-21 03:58 Yep, good app, meets a real need and, from my superficial testing works as expected. So, IMHO, a good thing. Incidentally, good that its built with FV/FPC too ! Its dependency on FPC-331 means is not going to make it into eg Debian unless we see some FPC releases. And, as time goes by, that seems less and less likely. Pity ! kagamma, could you do a {$ifdef} version (that works with problems) built with FPC322 ? Davo ---------------------------------------------------------------------- kagamma · 2026-03-26 10:33 @dbannon: Sorry for the late reply. The app relies heavily on the Unicode version of FV. In the past I did try to support the old FV, but decided to stop because the differences between the two versions were too significant. The old FV uses ShortStrings + both FVs rely on raw pointers for serialization/deserialization data, which makes code a pain to write. ---------------------------------------------------------------------- kagamma · 2026-03-27 05:13 Just spent some time today to add support for ShortString version of Free Vision. It is now possible to build it using FPC 3.2.2 ---------------------------------------------------------------------- dbannon · 2026-03-27 06:13 hey, how good is that ?  You fixed it while I was thinking about how to answer you. So, would you submit it to debian ?  License looks ok. Looks like you can build it from command line ? Know how to make a deb source package ? Once you have that, you can use it yourself to build deb binary packages to release. Lots of users are not up to building their own. Debs can be converted to rpms too. Now, tell me, do you call libparted.so.1 directly or go via external calls to the parted binary. Davo ---------------------------------------------------------------------- kagamma · 2026-03-27 07:01 The ShortString version should be the same as the Unicode version, with the exception of no localization support I have been using Arch Linux since my early Linux days, so my motivation to maintain install package for another distro myself is quite low. Yes you can build it from command line. This is how users from Arch Linux build it from source via the Arch User Repository: https://aur.archlinux.org/packages/tparted-git The app makes external calls to parted, mainly for creating and deleting partitions. Other operations are done using different external tools. ---------------------------------------------------------------------- valdir.marcos · 2026-03-30 04:30 Quote from: kagamma on February 11, 2024, 03:54:44 amAs of Feb 10th the app is considered stable so I decided to make a topic here https://github.com/Kagamma/tparted tparted is a simple, user-friendly Linux utility for creating, reorganizing, and deleting GPT disk partitions, based on Free Vision. It is quite similar to its distant relative gparted, although feature- wise it is still lacking. It uses parted for manipulating partitions and the corresponding filesystem tools to deal with specific filesystems. This is also my first time using the Unicode version of FV, and discovered some of its bugs during the development of this app, see https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/581 and https://gitlab.com/freepascal.org/fpc/source/-/issues/40607. There's also an issue with rendering East Asian characters (see attached image), although I am a noob in this matter and not sure if this is something we can fix on the FV side or simply a limitation when it comes to half-width chars overlapping full-width chars. Thanks.