Recent

Author Topic: tparted - TUI frontend for parted based on FV  (Read 6195 times)

kagamma

  • New Member
  • *
  • Posts: 13
tparted - TUI frontend for parted based on FV
« on: February 11, 2024, 03:54:44 am »
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

  • Hero Member
  • *****
  • Posts: 8133
Re: tparted - TUI frontend for parted based on FV
« Reply #1 on: February 11, 2024, 09:31:21 am »
Well done. Any use of and TLC directed towards FV is a good thing.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

dseligo

  • Hero Member
  • *****
  • Posts: 1455
Re: tparted - TUI frontend for parted based on FV
« Reply #2 on: February 11, 2024, 03:14:58 pm »
Well done. Any use of and TLC directed towards FV is a good thing.

What does TLC mean? Tender Loving Care?

MarkMLl

  • Hero Member
  • *****
  • Posts: 8133
Re: tparted - TUI frontend for parted based on FV
« Reply #3 on: February 11, 2024, 05:48:35 pm »
What does TLC mean? Tender Loving Care?

Yes.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

ginoo

  • Full Member
  • ***
  • Posts: 108
Re: tparted - TUI frontend for parted based on FV
« Reply #4 on: February 12, 2024, 08:12:29 am »
compliment, I will try to use it

rgeorge7

  • New member
  • *
  • Posts: 7
Re: tparted - TUI frontend for parted based on FV
« Reply #5 on: December 28, 2024, 02:51:06 pm »
@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

  • Hero Member
  • *****
  • Posts: 1786
    • http://www.cdbc.dk
Re: tparted - TUI frontend for parted based on FV
« Reply #6 on: December 28, 2024, 04:05:24 pm »
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
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

rgeorge7

  • New member
  • *
  • Posts: 7
Re: tparted - TUI frontend for parted based on FV
« Reply #7 on: December 28, 2024, 11:52:15 pm »
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/units/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

  • Hero Member
  • *****
  • Posts: 1786
    • http://www.cdbc.dk
Re: tparted - TUI frontend for parted based on FV
« Reply #8 on: December 29, 2024, 02:55:34 am »
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
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

rgeorge7

  • New member
  • *
  • Posts: 7
Re: tparted - TUI frontend for parted based on FV
« Reply #9 on: December 29, 2024, 03:26:01 pm »
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.  :D

 

TinyPortal © 2005-2018